wood burning stoves
The moose likes Sockets and Internet Protocols and the fly likes Problem getting local ip address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Problem getting local ip address" Watch "Problem getting local ip address" New topic

Problem getting local ip address

Tien Duong Nguyen

Joined: Oct 22, 2004
Posts: 22

Anybody knows how to get the computer ip address by using java ?

I have tried to use the method getInetAddress of ServerSocket class, but it always returns me the address What I want is the computer static ip address or DHCP , e.g :

Really appreciate if anyone can help.


SCEA (part 1), part 2,3 in progress<br /> <br />SCBCD,SCWCD,SCJP
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Problem getting local ip address
It's not a secret anymore!