Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get ip client is connecting to?

807589Oct 14 2008 — edited Oct 14 2008
Hi!

I've a problem, i want to get the ip the client is using to connect to my server (i'm behind a router).

For example: A client is connecting to my server on network (ip: 192.168.2.3)
Server says: You're connecting to ip 192.168.2.3
A client is connecting to my server on Internet (ip: 84.xx.xx.xx)
Server says: You're connecting to ip 84.xx.xx.xx.

(I don't want to fetch the public ip from whatsmyip.org)

Thanks in advance

Edited by: hannesruns@hotmail.com on Oct 14, 2008 12:17 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2008
Added on Oct 14 2008
11 comments
177 views