External ip logger php script

Joined
Apr 4, 2011
Messages
8
Reaction score
0
Points
1
I did manage to log the visitors' IP but it is retrieving the local address (intranet) and not the global one.
Do you know which variable will work?
I tested logging into my mac (connected through a GSM modem) server from a mobile that was connected to a local wifi signal and the script logged only a local IP. When I search on the net from the phone's web browser "what is my IP" the value returned was the global one. Therefore, those sites do find the external IP somehow.
Can you help?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top