Hi guys,
I have a MIDlet that sends TCP messages over the network to a server residing on the same internal network. Whenever I try to connect using this line:
StreamConnection writeSock = (StreamConnection) Connector.open("socket://" + serverIp + ":" + serverPort, Connector.READ_WRITE);
I get an error saying
Tunnel Failed
According to netstat, the port on which the server is set to listen is actually open and in listening mode. I printed the IP and Port values from the mobile application and they seem to be correct. I have looked on the internet and many people solved the problem by setting up their APN details. I did such a thing, and the problem still persists. I have no clue what I have to do next. Just for checking purposes, these are the APN details I entered:
APN: internet Username for APN: internet Password for APN: internet
My carrier is Vodafone Malta. Just as a side note, this part of the application works on an emulator. I am using a default emulator (DefaultFxPhone1) that comes with the j2me package, and I am using Netbeans 6.8.
I have tried enabling and disabling the firewall, but to no avail.
Thanks in advance.