I have no clue what is causing this, but using a socket on iOS and calling connect() makes the app hang for 30s to 1 minute or more. And when it finally returns, half of the time the connection failed, even if the server is perfectly working.
I am using low level sockets, since I am avoid having objective C code at all. What could cause this?