Hey there! any question in your mind? Ask It Now!.

Popular Categories





Error: java.net.UnknownHostException

+2 votes
72 views
asked in Programming by mika (1,290 points)

I am getting this exception how to solve this error ?

java.net.UnknownHostException: Invalid hostname for server: local

1 Answer

+1 vote
answered by monika (2,040 points)

Because localhost is coming so should try host name with a ip 10.0.2.1

According to  the javadocs:  IP address of a host could not be determined.

if that local is a server on your network so you should add it to your host file and in DNS setting  also.

Related Questions

+6 votes
1 answer 316 views
+3 votes
1 answer 69 views
+2 votes
1 answer 52 views
+7 votes
8 answers 7,321 views
+1 vote
1 answer 86 views
0 votes
0 answers 87 views
0 votes
0 answers 147 views
asked in Programming by vimal jain
0 votes
0 answers 71 views
0 votes
1 answer 115 views
0 votes
1 answer 62 views

Not a Member yet?

Ask to Folks Login

My Account
1072 Folks are online
69 members and 1003 guest online
Your feedback is highly appreciated