What is the most reliable way of obtaining the IP address of a remote client connecting to your website? Some options I've looked into are:
- Server variables (such as REMOTE_ADDR in Apache), though this is usually the proxy address.
- A Java applet, but IE (at least the one I'm using) seems to deny it.
The only other thing I'm thinking about is having the client connect over HTTPS, in which case the proxy should be bypassed (generally speaking), and so REMOTE_ADDR would be accurate.
Any ideas?