Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Web Client Computer Name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BDRichardson - 11 Feb 2008 15:17 GMT
I am aware that is is possible to determine the web client computer name
using DNS, i.e. invoke System.Net.Dns.GetHostEntry(
System.Web.HttpRequest.UserHostAddress).  However, this only seems to work if
the client computer resides within the same domain as the web server.

Is it possible to determine the computer name for a web client which resides
in a different domain to the web server?
Eliyahu Goldin - 11 Feb 2008 15:33 GMT
Try Request.UserHostName.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

>I am aware that is is possible to determine the web client computer name
> using DNS, i.e. invoke System.Net.Dns.GetHostEntry(
[quoted text clipped - 5 lines]
> resides
> in a different domain to the web server?
BDRichardson - 11 Feb 2008 16:07 GMT
Unfortunately, that only returns the IP Address :-(

> Try Request.UserHostName.
>
[quoted text clipped - 7 lines]
> > resides
> > in a different domain to the web server?
Eliyahu Goldin - 11 Feb 2008 16:19 GMT
I don't think there is any other way.

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> Unfortunately, that only returns the IP Address :-(
>
[quoted text clipped - 10 lines]
>> > resides
>> > in a different domain to the web server?
bruce barker - 11 Feb 2008 16:22 GMT
for internet users, most use a proxy that will hide their machine name via
nat translation. if this in an internal application, you can configure
win/dhcp to update your internal dns server with the computer name.


-- bruce (sqlwork.com)

> I am aware that is is possible to determine the web client computer name
> using DNS, i.e. invoke System.Net.Dns.GetHostEntry(
[quoted text clipped - 3 lines]
> Is it possible to determine the computer name for a web client which resides
> in a different domain to the web server?
BDRichardson - 11 Feb 2008 16:32 GMT
I understand the basic concepts of DNS and DHCP from when I had technical
support roles, however, my knowledge of these areas is becoming a little
dated.

Are you telling me that one DNS server can be configured to update the
records of a different server in a different domain?  i.e. DNS ServerA in
DomainA can inform DNS ServerB in DomainB that ComputerA exists.

If the systems can be configured to solve my problem, then I will have to
ask the systems guys to investigate.

> for internet users, most use a proxy that will hide their machine name via
> nat translation. if this in an internal application, you can configure
[quoted text clipped - 10 lines]
> > Is it possible to determine the computer name for a web client which resides
> > in a different domain to the web server?
Patrice - 11 Feb 2008 16:32 GMT
And the result you get is ? Any specific IP we could try ?

IMO this is more likely that some ISP won't bother with handling this so in
some cases the ISP will either ignore the request or will return some random
name...

What would you do with the host name ?

>I am aware that is is possible to determine the web client computer name
> using DNS, i.e. invoke System.Net.Dns.GetHostEntry(
[quoted text clipped - 5 lines]
> resides
> in a different domain to the web server?
BDRichardson - 11 Feb 2008 16:40 GMT
Please let me steer you back on to the path of my enquiry.

This is only for an Intranet application, and I am referring to internal
corporate domains.

Sorry for not being clearer from the outset!

> And the result you get is ? Any specific IP we could try ?
>
[quoted text clipped - 13 lines]
> > resides
> > in a different domain to the web server?
Patrice - 11 Feb 2008 16:55 GMT
And the result you get when trying is ? I also tried to resolve
207.46.192.254 which is a microsoft.com machine and it works...

--
Patrice

> Please let me steer you back on to the path of my enquiry.
>
[quoted text clipped - 23 lines]
>> > resides
>> > in a different domain to the web server?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.