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?
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?