S
Stewart
whats the best way to get a client ip address. I am using rails if that
makes any difference
makes any difference
Stewart said:whats the best way to get a client ip address. I am using rails if that
makes any difference
Clifford said:It does - you need the socket, and if you're in a Mongrel hiding behind
an Apache or IIS you're out of luck. Otherwise, BasicSocket::getpeeraddr
is what you want - then you have to parse the sockaddr structure in a
platform-dependent way. Blech - why can't Ruby do basic sockets right?
Stewart said:whats the best way to get a client ip address. I am using rails if that
makes any difference
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.