Script to show visitors IP Address
The follwoing Java Script will show the visitor his IP Address.
The Server Variable “REMOTE_ADDR” is used so the page must be saved with the .shtml extension
In the bellow script we are making use of javascript and a server variable REMOTE_ADDR
The page in which you embed this following script will show your visitors their IP Address on the Internet.
<script language=”javascript”>
var ip = ‘<!–#echo var=”REMOTE_ADDR”–>’
document.write(ip)</script>
You can also Apply text formatting and nest this script within various other HTML Tags
About this entry
You’re currently reading “Script to show visitors IP Address,” an entry on Sujay Gawand’s Weblog
- Published:
- 12.20.08 / 10am
- Category:
- Scripts
- Tags:
- IP, IP Address, IP Address Script, Javascript, REMOTE_ADDR, Script


No comments
Jump to comment form | comments rss [?] | trackback uri [?]