467,923 Members | 1,420 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,923 developers. It's quick & easy.

Web Client Computer Name

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?
Feb 11 '08 #1
  • viewed: 7155
Share:
8 Replies
Try Request.UserHostName.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"BDRichardson" <BD**********@discussions.microsoft.comwrote in message
news:E5**********************************@microsof t.com...
>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?

Feb 11 '08 #2
Unfortunately, that only returns the IP Address :-(

"Eliyahu Goldin" wrote:
Try Request.UserHostName.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"BDRichardson" <BD**********@discussions.microsoft.comwrote in message
news:E5**********************************@microsof t.com...
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?


Feb 11 '08 #3
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)
"BDRichardson" wrote:
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?
Feb 11 '08 #4
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" <BD**********@discussions.microsoft.comwrote in message
news:AA**********************************@microsof t.com...
Unfortunately, that only returns the IP Address :-(

"Eliyahu Goldin" wrote:
>Try Request.UserHostName.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"BDRichardson" <BD**********@discussions.microsoft.comwrote in message
news:E5**********************************@microso ft.com...
>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?



Feb 11 '08 #5
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.

"bruce barker" wrote:
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)
"BDRichardson" wrote:
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?
Feb 11 '08 #6
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 ?
"BDRichardson" <BD**********@discussions.microsoft.coma écrit dans le
message de news: E5**********************************@microsoft.com...
>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?

Feb 11 '08 #7
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!
"Patrice" wrote:
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 ?
"BDRichardson" <BD**********@discussions.microsoft.coma écrit dans le
message de news: E5**********************************@microsoft.com...
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?


Feb 11 '08 #8
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

"BDRichardson" <BD**********@discussions.microsoft.coma écrit dans le
message de news: 4B**********************************@microsoft.com...
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!
"Patrice" wrote:
>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 ?
"BDRichardson" <BD**********@discussions.microsoft.coma écrit dans le
message de news: E5**********************************@microsoft.com...
>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?



Feb 11 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ken Allen | last post: by
2 posts views Thread by cedced | last post: by
4 posts views Thread by Matt Frame | last post: by
1 post views Thread by Carl Jones via .NET 247 | last post: by
1 post views Thread by Murat YILMAZ | last post: by
6 posts views Thread by libero familymac news | last post: by
2 posts views Thread by WhatHappend | last post: by
2 posts views Thread by nsaffary | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.