The Artima Developer Community
Sponsored Link

Java Buzz Forum
Getting all IP addresses of local machine

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Goldy Lukka

Posts: 1008
Nickname: xyling
Registered: Jan, 2004

Goldy Lukka is a Java Developer and an Entrepreneur. He is Founder of xyling.com.
Getting all IP addresses of local machine Posted: Oct 7, 2006 3:47 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Goldy Lukka.
Original Post: Getting all IP addresses of local machine
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
Latest Java Buzz Posts
Latest Java Buzz Posts by Goldy Lukka
Latest Posts From Xyling Java Blogs

Advertisement
This is one code that saved hours for me. Thanks to jguru for sharing the code that gives me all the IP addresses associated with my system.

Simply calling InetAddress.getLocalHost().getHostAddress() cannot solve the problem as it may return only one IP address.

The code (point to the title of this post) gives you the IP address of all your network connections including your public IP that is created when you connect to internet.

[Resource-Type: Source Code; Category: J2EE, J2SE; XRating: 5]

Read: Getting all IP addresses of local machine

Topic: Ain't That Pretty at All Previous Topic   Next Topic Topic: Spring Framework 2 Final

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use