Getting the "javax.microedition.io.ConnectionNotFoundException: TCP open" Error Message

You may get this error message when you develop a J2ME application and try to access the web through an HttpConnection object. There may be other reasons for this but I had the following problem:

  • I was behind a proxy so my connection was refused.
  • Even http://localhost/ didn't work. Maybe the J2ME emulator doesn't use the local hosts file to determine the IP address.
  • Finally, when I used http://127.0.0.1/ (which is the IP address of localhost on Windows), it worked.

If you have other solutions for this, let me know.

 
tcpopen.txt · Last modified: 2009/03/11 14:54 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki