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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting user address 1

Status
Not open for further replies.

dbrom

Programmer
Feb 21, 2001
100
US
Hi,
I know how to detect the IP address -
Request.ServerVariables("REMOTE_ADDRESS")
However, when I view stats provided by my webhosting provider, I see that they show user addresses in the following format:

cache-rq01.proxy.aol.com
pool0953.cvx6-bradley.dialup.earthlink.net


Do you know if there's any way in ASP to detect user address in the same format. I can sometimes learn more about their location than from the IP.

Thanks in advance.
<Dmitriy>
dbrom@crosswinds.net
 
Hi,

I don't know why (... perhap$ I do...) but IIS doesn't provide a direct way to perform reverse DNS. I don't know the difference between REMOTE_ADDR and REMOTE_HOST, I think one these should display the hot name and the other its IP. You can always use nslookup to perform the IP translation.

Regards,
Luís Silva
 
Thanks LnOrS,

but REMOTE_ADDR and REMOTE_HOST seem to give the same thing -
the IP address. However, I did not think about the possibility of NSLookup, so thanks a lot.
Do you by any chance know if there's a site that I can query from my page and write the translation result in the database?

Thanks again. <Dmitriy>
dbrom@crosswinds.net
 
Hi,

No, I don't!! If you have an advanced OS you can query it. You can always amke a C or Java program to do it from a &quot;log&quot; file!!

Regards,
Luís Silva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top