jsp get ip address

Posted by Alan on Stack Overflow See other posts from Stack Overflow or by Alan
Published on 2009-04-05T11:27:02Z Indexed on 2010/03/15 15:49 UTC
Read the original article Hit count: 309

Filed under:
|

Hello, whats the best way of preventing someone from voting twice? How do i get the users ip address? What if they are on a large network? will everyone on that network show the same ip? thanks


UPDATE: request.getRemoteAddr() and request.getRemoteHost() return the Server names, not the client's host name and ip. Anyone else got any bright ideas?


Ok, so lets forget about the voting twice thing. Im just trying to get the users ip address? i tried request.getRemoteAddr() and request.getRemoteHost() and think im getting the servers address. I have access to two separate networks and am getting the same IP address :(

© Stack Overflow or respective owner

Related posts about jsp

Related posts about java