This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes inetaddress problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "inetaddress problem" Watch "inetaddress problem" New topic
Author

inetaddress problem

pawar rahul
Greenhorn

Joined: Mar 26, 2006
Posts: 1
when i used ,
InetAddress address = InetAddress.getByName("google.com");
System.out.println(address);

it did not give any output by threw UnknownHostException though my computer is connected to the internet.
 
Don't get me started about those stupid light bulbs.
 
subject: inetaddress problem
 
Similar Threads
InetAddress and getLocalHost
about IP
IP address!
InetAddress!
How can i find out the ip address of the machine in Java