Issues with httpd over 3G
I am experiencing a strange 开发者_运维问答issue with connecting to my web server from my Iphone4. I have an app that connects to my web serer and downloads a chunk of JSON. This works fine when i'm connected via WIFI, but fails through 3G. I don't think it's my app, as Safari also fails to retrieve any page on my web server when using 3G. My web server has a fixed i.p and is running apache/Centos pretty fresh out of the box, I have not messed with the firewall or iptables settings.
The error obtained from the iphone is "The network connection was lost" It feels like a firewall issue, but i have not explicitly denied any ips. Is there some aspect of a 3g connection that gets denied by default on Linux? I realise this is all vague at this time, but does anyone have any wisdom to offer? Many thanks in advance.Here is a topic related to iphone connection loss through 3G cellular data whereas WiFi works fine, also giving the error "The network connection was lost"
Couple suggestions:
Ensure that your web server is responding in a timely fashion. If it is taking a little too much time, the 3g connection might give up.
Check your web server logs and see if the connection is reaching your web server at all, and if any errors are being recorded. If so, investigate.
There isn't anything special about a 3g connection wrt you web server. Only difference would be that it is less reliable or slower.
How are you actually trying to connect to your web server? When its over wifi you are local on your network and the name of the server will probably work. But when its over 3g its on the interwebs and will probably not respond to the name of the server.
精彩评论