show my users ip address on my site
does anyone know how to show my users ip address on my site?
in html code, cheers
var ipAddress = '<!--#echo var="REMOTE_ADDR"-->';
Someone else may have a better way tho!
thanks slolearner but it does not work, im not using server tech on the site im working on just basic html pages
There's no way (is it?!) to show the IP using basic html.
Originally Posted by sloLearner
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.
You can use the Code:
Originally Posted by se4no
I got it from IP-Details.com .Visit the site and customize the code that suites you.
<div style="width:600px; overflow:hidden;"><table cellpadding="0" cellspacing="0" border="0">
<tr><td><iframe src="http://www.ip-details.com/ip-details-client/api/?mode=1&cdx=%5bdiv+style%3d%22border%3a2px+solid+gray%3b+background-color%3a%23efefef%3b+color%3ablack%3b+width%3a600px%3b+height%3a25px%3b+font-size%3a14px%3b+overflow%3ahidden%3b+padding-top%3a3px%3b+padding-left%3a5px%3b%22%5d%5bspan+style%3d%22color%3a%23333333%3b%22%5d%5bb%5dYour+IP+Address+%5b%2fb%5d%5b%2fspan%5d%3a+%5bip%5d%2c+%5bcountry%5d%2c+%5bisp%5d%5b%2fdiv%5d" frameborder="0" height="25px" width="600px" scrolling="no"></iframe></td></tr>
<tr><td style="font-size:x-small;" align="right">Powered by <a href="http://www.ip-details.com/">IP-Details.com</a></td></tr></table></div>
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)