File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes how to get ip address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how to get ip address" Watch "how to get ip address" New topic

how to get ip address

raja ramesh

Joined: Jan 09, 2008
Posts: 25
How to get the ip addresses of in a LAN using java ?
Joe Ess

Joined: Oct 29, 2001
Posts: 9168

TCP/IP does not support a way to query a network to find host addresses.
Iterating through IP addresses, pinging to find active addresses is usually seen by network administrators as a threat, and is frowned upon.
There are protocols built on top of TCP/IP,Jini, for example , which do make it possible to discover network resources.

[How To Ask Questions On JavaRanch]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: how to get ip address
It's not a secret anymore!