View Full Version : HELP!

04-17-01, 02:39 PM
I need an IP display script.

When someone is looking at the page, i want their IP to be displayed.

Exactly like on the SG TCP/IP analyzer.

Philip tried to help me, but i am very confused lol.

04-22-01, 12:28 AM
You can get the IP address from a HTTP server environment variable (REMOTE_ADDR). The easiest way to do it is if your web server has server-side includes turned on, then it is as simple as giving the file a .shtml extension and putting this in where you want the
IP address to be displayed:

<!--#echo var="REMOTE_ADDR"-->

There are other ways to do this as well.

[ 04-22-2001: Message edited by: Stu ]

04-25-01, 12:38 AM
That's very similar to what I tried to explain as well, sorry if I was confusing :)