General discussion

Locked

InetAddress

By chakravartyanirban77 ·
I want to retrieve the IP Address of any host using InetAddress.getAllByName() but the program is giving an UnknowHostException. We are using a proxy Server, is it because of that? I was successful with the same thing when not using a proxy on a different computer

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

InetAddress

by jamshedd In reply to InetAddress

hi buddy
well yes using a proxy server will give you and unknown host exeption.
I encountered the sam problem while trying to do socket programming.But InetAddress solved it
Goto javaworld.com over there check out the tips section there is a tip to configure yourprogram to run behind a proxy

Collapse -

InetAddress

by chakravartyanirban77 In reply to InetAddress

The question was auto-closed by TechRepublic

Collapse -

InetAddress

by okujava In reply to InetAddress

try setting a system property:

System.setProperty("proxy", "server:port");

it should work


s.okujava

Collapse -

InetAddress

by chakravartyanirban77 In reply to InetAddress

The question was auto-closed by TechRepublic

Collapse -

InetAddress

by chakravartyanirban77 In reply to InetAddress

This question was auto closed due to inactivity

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums