473,320 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
8 7432
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ken Allen | last post by:
Most of .Net seems to be focused on the concept of multiple clients and a single server that provides the control. All of the examples that I have seen presume that the client code knows the...
2
by: cedced | last post by:
Hello, is it possible to access client files in VB.NET? What? I have doing that but it isn't good (VB.NET take file on pc server and not on pc client): (thanks) Dim fichier As StreamReader ...
4
by: Matt Frame | last post by:
I am working on a special ASP.Net application that receives files from customers. The connection is made via HTTPS and the client sends the file as a POST to my ASP.Net listener. All of this...
1
by: Carl Jones via .NET 247 | last post by:
(Type your message here) I'm trying to run a client-side script from a web page. It's a VB script that gets information (computer name, software versions etc )about the computer and writes it to a...
1
by: Murat YILMAZ | last post by:
Hi all, I have develop a web page and there are 4 textbox on it. I have put 4 validation for these. Issue is that If I have request this page and submit form validations are not working. But I...
6
by: libero familymac news | last post by:
Hy! sorry for my bad english... i'm developping web forms in c# and i have to take the client machine name I try with server variables ( request.servervariables ) and with...
2
by: WhatHappend | last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service invocations have delay of around 10seconds on each intial access. After the first access subsequent access are fast (After a...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.