View Single Post

  #6 (permalink)  
Old 07-13-2007, 06:30 PM
Ali_ix's Avatar
Ali_ix Ali_ix is offline
Junior Member
User
 
Join Date: Jul 2007
Location: Iran, Tehran
My distro: Debian/Ubuntu
Posts: 6
Rep Power: 0
Ali_ix is on a distinguished road
Send a message via Yahoo to Ali_ix
Default

Quote:
Originally Posted by SAYAYINX View Post
Thanks but I do not know if that script would work...

I am connected via router to the internet, it is not straight through.

...
Would it work?
No, it wont.
You should change the "get current ip on IFACE" section.

you can use some "what is my ip" web sites and grep your ip in html page, or if you have and site, web host available, write a simple php script to give JUST the visitor ip.

sample php code that should work:

PHP Code:
<?php echo getenv('REMOTE_ADDR'); ?>
Reply With Quote