aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 227
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: 9990
    
    7

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!]
 
It is sorta covered in the JavaRanch Style Guide.
 
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.......
Access net via Automatic Configuration Script
How to generate a log of each request of ip
RMI lookup