Hello I don't know if I post in the right forum . I'm looking for a code that will show my visitor their ip address, like what is my ip . Thanks
ogletree
3:42 am on Apr 9, 2005 (gmt 0)
As far as I know javascript can't do it. You need a server side language like PHP, ASP or just SSI. It is very easy to do in those. Which one you want it in. What you are looking for is REMOTE_ADDR. You can search for that and find all kinds of info.
Rambo Tribble
4:02 am on Apr 9, 2005 (gmt 0)
Yes, the local IP address isn't exposed at the client. You have to read that at a server.
charbello
3:13 am on Apr 12, 2005 (gmt 0)
I got it from another website/ Thanks
Moby_Dim
6:36 am on Apr 12, 2005 (gmt 0)
Javascript + java ;) Try this :
myhost=java.net.InetAddress.getLocalHost(); ip=myhost.getHostAddress(); document.write("Your IP is : "+ip);