Web Client Computer Name

B

BDRichardson

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?
 
B

BDRichardson

Unfortunately, that only returns the IP Address :-(

Eliyahu Goldin said:
Try Request.UserHostName.

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


BDRichardson said:
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?
 
E

Eliyahu Goldin

I don't think there is any other way.

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


BDRichardson said:
Unfortunately, that only returns the IP Address :-(

Eliyahu Goldin said:
Try Request.UserHostName.

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


BDRichardson said:
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?
 
B

bruce barker

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)
 
B

BDRichardson

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.
 
P

Patrice

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 ?
 
B

BDRichardson

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!
 
P

Patrice

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top