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!

Display workstation IP address

Status
Not open for further replies.

999Dom999

Technical User
Apr 25, 2002
266
GB
Hi not sure if I'm in the right place. For support I need to get my users to access a website and it display their network IP address so I know which machine they are using. Is there a utility or webpage/script i could add to my webserver so that when they access it shows their IP?
 

This cannot be done using standard HTML. You would have to use some sort of scripting, most likely server-side scripting.

Hope this helps,
Dan
 
A mate of mine gave me the solution using php:

<?
$ip = (!empty($_SERVER['REMOTE_ADDR'])) ? $_SERVER['REMOTE_ADDR'] : getenv('REMOTE_ADDR');
echo $ip;
?>

Exactly what I needed.

Cheers Tim!! [pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top