Kitura / BlueSocket

Socket framework for Swift using the Swift Package Manager. Works on iOS, macOS, and Linux.
Apache License 2.0
1.41k stars 197 forks source link

Can not receive tcp packets in hotspot #211

Open arashetm opened 2 years ago

arashetm commented 2 years ago

Hi, Thanks for your awesome library. My problem is that I can't receive TCP packets through the hotspot, but I can get them in a regular network by your sample code. Are there any restrictions in the hotspot network?

dannys42 commented 2 years ago

When you say "hotspot" is it something from your cellular phone company? Some of them do have filters that prevent you from running "servers". You can run a test using the command-line netcat ("nc") utility to confirm. Something like this to run a server:

nc -l 8080

You can vary the port number. I've found some service providers only block specific common ports (like http, smtp, etc).