This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How to find IP address of the System Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to find IP address of the System" Watch "How to find IP address of the System" New topic
Author

How to find IP address of the System

Ramakrishna Udupa
Ranch Hand

Joined: Aug 09, 2013
Posts: 244
Hi All,

In my java program I'm changing my IP(using proxy) and sending the request to some sites. Later some point of time, I want to know my current IP address through java program itself. How to get hold of my current IP address? Also which IP address will it show? The proxy one or the original IP ?

Thanks:
Ramakrishna K.C
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

Check out some nice answers here http://stackoverflow.com/questions/9481865/how-to-get-ip-address-of-our-own-system-using-java


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
jQuery in Action, 2nd edition
 
subject: How to find IP address of the System
 
Similar Threads
How to generate a log of each request of ip
How to generate a log of each request of ip
RMI lookup
Access net via Automatic Configuration Script
How to generate a log of each request of ip.......