Possible Duplicate:
How can a server find real client IP address?
I need to let my users find very quickly and easily their local (LAN) ip.
Our network has a squid proxy so all the users sit behind it (and this is a problem for internal ip detection: all php scrips I’ve tried are able – at best – to detect proxy’s ip and not client’s).
Any kind of language working on a LAMP server is welcome…
Also a simple EXE file on Windows could work as “plan b” but I couldn’t find anything working.
Following @German Arlington’s answer, I think your best bet is configuring Squid to send the
X-Forwarded-Forheader along with HTTP requests:Then you will be able to read the ip address in PHP via apache_request_headers()