Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket connection -- stand alone PC vs LAN  RSS feed

 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I had few programs using Sockets/InetAddress/URLConnection objects that interacted with URLs.
I got the result in stand alone PC however when I run the same program in a LAN env., I get Run-time exceptions : "UnknownHostException"
What should I do ?
 
Matt Siegel
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using the IP Address of the remote machine, and if this works it's probably a DNS issue.
Matt
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible that this could be related to firewall or proxy setting ?
 
Manoj Pandey
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had faced a similar problem , but it was due to the proxy server we were using, When we connected directly , avoiding the firewall, there was no problem.

Hope that helps a bit
[ March 04, 2002: Message edited by: manoj pandey ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!