freelanceprogrammers.org Forum Index » Java

Get IP address by its name.


View user's profile Post To page top
njzeng Posted: Sun Feb 03, 2002 7:02 pm


Joined: 30 Jan 2002

Posts: 24
Get IP address by its name.
I would like to share my exprience.<br>I find at
java.net.InetAddress ,class InetAddress has a method called
getByname(); so we can get the Ip address by its host
name.<br>For example ,InetAddress
address=InetAddress.getByname("localhost").<br>and the value of address is
"127.0.0.1".<br>i hope ,i
did not bother you.<br>njzeng
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help