Reputation: 941
I building small utility iOS App with GCDAsyncSocket that will ping ports on www.apple.com: list of ports.
For example, trying to connect on TCP port 80 and 443 I got "connected" status, but when I try 2195 and 2196 I get "timeout".
When trying to connect to ports with GCDAsyncUdpSocket, whichever port I try to connect I get "connected", even though some ports aren't open (tested with nmap which returns "closed").
So, I have couple of questions:
1) Am I doing something wrong when trying to connect to ports 2195, 2196, etc?
2) Is GCDAsyncUdpSocket reliable? Whatever I try with it, it passes.
Upvotes: 0
Views: 138
Reputation: 6300
You have several misconceptions here:
See this about detecting if an UDP port is open or not.
Upvotes: 3