Read timed out

Login to reply to this topic.
Mon, 2005-05-09 07:12
Joined: 2005-03-21
Forum posts: 45
Hi,

Iam trying to connect to my server and send data, but each time when i connect to server iam getting
java.net.SocketTimeoutException: Read timed out exception in servlet.

Please help me to solve this issue.

Thanks in advance.

Regards,
Prabhu.

Mon, 2005-05-09 08:43
Joined: 2004-07-28
Forum posts: 1379
Read timed out
More info please.

On what port are you trying to connect?
Over what data bearer (GPRS, GSM data etc etc)?

didster

Mon, 2005-05-09 09:40
Joined: 2005-03-21
Forum posts: 45
Read timed out
Hi,

Iam using GPRS and iam trying to connect to a server running in a public IP address on a port(8899).

Iam using the code to choose the access point programatically, will this always work. coz i have around 5 access points in my device and i will be able to connect through only one out of it.
Mon, 2005-05-09 09:47
Joined: 2004-07-28
Forum posts: 1379
Read timed out
It should work, as long as you select a valid access point you know works (try using a web browser on the phone to determin if you can get net access with that access point - if that works, so should your app).

Make sure you can also get an incomming connection to your server on port 8899 from another machine on the net - i.e. make sure no firewalls etc are blocking incomming 8899 to your server.

The one thing I often see with this is operators blocking certian ports on their networks.  If you still can't get it to work, try changing your server to listen on port 80, and change the handset software to connect on 80.  If this works, your operator is blocking outgoing 8899, and your only option is to change port/operator.

didster

  • Login to reply to this topic.