BlueSocket icon indicating copy to clipboard operation
BlueSocket copied to clipboard

Can not receive tcp packets in hotspot

Open arashetm opened this issue 3 years ago • 1 comments

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?

arashetm avatar May 01 '22 09:05 arashetm

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).

dannys42 avatar May 02 '22 17:05 dannys42