Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ConnectionNotFoundException using TCP loopback interface

William Van Woensel
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

When I try to establish a TCP connection (using localhost as IP) as a client, I get the following exception:
(exception message: null)

The code that establishes the connection (and responsible for throwing the exception):

I am sure that my device supports SocketConnection (I've gotten it to work on an IP address in the local network), so the problem must be that I use localhost? I've tried substituting it for, omitting the arguments, changing the port (I've tried 13, 14, 9002, ..), but to no avail.

Any ideas?

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!