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 Soft Skills this week in the Jobs Discussion 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: 253
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: 10534
    
    9

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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to find IP address of the System