12-11-2009 07:50 AM
I am using "wifi" as preferrred mode of transport for sockets.
using connectionstring as follow
it is able to write some data to socket but after few secs this IOException "java.io.IOException: General socket error".
If i use MDS with connection string as follow:
it works great.
But I want to use only wifi bypassing "MDS/BES" which exists in between.
Can anybody suggest what could be done?
12-11-2009 11:57 AM
deviceside=true is not needed with interface=wifi.
Do you have access to that IP address via the WiFi network? Given the 10.... IP Address, I presume that you are attempting to access on of your company's server. Going via the BES you will be inside your company's firewall. The WiFi network you are on might not be.
12-12-2009 04:34 AM
Yes I am able to reach that local ip address via WiFi as its inside our wireless LAN. I have made successfull HTTP connection
to it using (HttpConnection)Connector.open and it works perfectly fine over WiFi. But this problem comes in raw TCP sockets.
Any Idea what could be the reason ?
12-12-2009 09:03 AM
Sorry no idea, I use socket connections over WiFi no problem at all on all the devices I have tested. What device are you using? What size data are you attempting to send at a time? What OS level are you developing and and what OS Level is on the device. Can you try using WiFi on the Simulator to see if there is a problem using that.
You will information on using WiFi on the Simulator in this post:
What can you do in the Simulator
Actually one thought, I wonder if this is split pipe exception. Need to think about that.
Can you look at the log at the time you get the exception and tell us what log entries you see immediately preceding it?
12-12-2009 12:49 PM
I tried that wifi on simulator thing its working perfectly fine on simulator.
Its on the device that error is coming. I will post more details on traffic and logs soon.