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