If the port is blocked by mobile operator, then also there will be
timeout exception.

Why don't you use HTTP (port 80) on your server side?
If a single port is kept unblocked by mobile operator, it should be
80.

Regards
Sarwar Erfan


On Aug 18, 7:41 am, Jenus Dong <jenus.ne...@gmail.com> wrote:
> From the log,  the reason is possible timeout. Cause WIFI used to connect
> fastly, GPRS is limited with low speed. So you could try to use much longer
> timer to connect the server.
> Hope it did work.
>
>
>
>
>
>
>
> On Wed, Aug 18, 2010 at 12:27 AM, alan <a...@birtles.org.uk> wrote:
> > Which port are you tring to connect to? maybe your mobile provider is
> > blocking that port.
>
> > On Aug 17, 10:02 am, Asif k <asifk1...@gmail.com> wrote:
> > > Hi all,
>
> > > I am developing a social Networking application and it works fine over
> > > WiFi but tried the same over GPRS it gives following Exception,
>
> > > 08-17 13:55:05.406: WARN/System.err(4233):
> > > java.net.SocketTimeoutException: Socket is not connected
> > > 08-17 13:55:05.406: WARN/System.err(4233):     at
>
> > org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native
> > > Method)
> > > 08-17 13:55:05.406: WARN/System.err(4233):     at
>
> > org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocket(OSNetworkSystem.java:
> > > 131)
> > > 08-17 13:55:05.406: WARN/System.err(4233):     at
> > > org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
> > > 247)
> > > 08-17 13:55:05.406: WARN/System.err(4233):     at
> > > org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:
> > > 535)
> > > 08-17 13:55:05.406: WARN/System.err(4233):     at
> > > java.net.Socket.connect(Socket.java:1054)
> > > 08-17 13:55:05.406: WARN/System.err(4233):     at
>
> > org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:
> > > 117)
> > > 08-17 13:55:05.413: WARN/System.err(4233):     at
>
> > com.vodafone360.photos.service.transport.http.HttpConnectionThread.postHTTPRequest(HttpConnectionThread.java:
> > > 293)
>
> > > what could be the reason?
>
> > > Thanks,
> > > Asif
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to