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

get host name

Status
Not open for further replies.

transtech

Programmer
Aug 21, 2001
23
US
Hi all,

Can any one tell me how to get the IP Address from the client when they access to the server page? And can you also tell how to convert the ip address so i can calculate it with the big ending algorithm?
i'll appreciate anyone with any suggestions.

thanks,

transtech
 
request.getRemoteHost();
this will return the IP address of the client - sorry but i'm not sure how to do the other part of your question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top