Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

REMOTE_ADDR & REMOTE_HOST

Status
Not open for further replies.

Mighty

Programmer
Joined
Feb 22, 2001
Messages
1,682
Location
US
Guys,

I am trying to access the Remote_Addr and Remote_Host variables to find the origin of HTTP requests to my server. However, all I get from both properties is the IP address. How do I get the hostname of the machine accessing my server?? Mise Le Meas,

Mighty :-)
 
What I know is, that you cannot get the hostname when users
are logged with anonymous access.
Maybe you can try using 'nbtstat -a <ipaddress>' or 'nslookup <ipaddress> within a script from your server.

Bobby
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top