问题
I have an Android app written using the DatagramSocket
library, and Python server on my laptop written using the socket
library.
They both communicate with each other.
When the Android phone and laptop are connected to my home internet it works fine. Standard out-of-the-box router setup.
However, when I connect the phone and laptop to a mobile hotspot it won't work. I need this functionality for a demonstration in college, as the college wifi doesn't work either.
Any suggestions what's causing the hotspot not to work, and what can be done to fix it?
来源:https://stackoverflow.com/questions/49757383/using-datagramsocket-and-python-socket-with-devices-connected-to-hotspot