To get the IP address you need SSI, PHP, ASP, or some other server side language to extract it for you and then give your page the appropriate extension so that the server side language will be run on the page before it is delivered to the browser.
but the script offered doesn't work when copied.
The pop-up displays: /!\ Your IP address is <!--#echo var="REMOTE_ADDR"-->
The source code has my IP address INSTEAD of the generating echo code!
not HOW it was fetched.
var ipAddress = <!--#echo var="REMOTE_ADDR" -->;
returns: /!\ Your IP address is undefined Getting closer...
I have tried this script mounted on a web page, not just on my computer.
How do I 'define' the the IP address or "REMOTE_ADDR" ?
Can someone correct this? what is the complete correct code?
using Firefox 2.0 or Seamonkey1.1, SUSE Linux.