View Full Version : HELP!
Banshee
04-17-01, 03: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.
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 ]
That's very similar to what I tried to explain as well, sorry if I was confusing :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.