Monday, April 7, 2014

android real machine, Socket is not connected to external 3G network (network test no problem), and why? ? ?


android real machine (China Unicom, China Telecom have tried), Socket is not connected to external 3G network (network test no problem), and why? ? ?

android code section that declares all the necessary permissions (full network service),

MFC write outside the network server, android real machine via 3G connection server, server-side OnAccept () is triggered,
While mobile terminal displays connection error message (connection timeout, I put the phone side socket.connect timeout is set long enough,
But every time as long as the service is not to end OnAccept () is triggered, the phone will immediately display the timeout), then the connection fails,
Not below, but has not triggered when the server periodically sends heartbeat packets to the client socket's Socket_error (even if the phone restart),

Myself with wifi network is not in question, port mapping tested outside the network is no problem, that in the end is what causes the timeout connection is not it?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
To paste the code to see, I have applied to the external network through a socket connection is recommended, it is normal

No comments:

Post a Comment