• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ConnectionNotFoundException using TCP loopback interface

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

java.microedition.io.ConnectionNotFoundException
(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 127.0.0.1, omitting the arguments, changing the port (I've tried 13, 14, 9002, ..), but to no avail.

Any ideas?

William
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic