Re: Android device hotspot does not assign port number
Posted: Mon Nov 09, 2020 1:55 am
quackmore wrote:clear your mind and google for "TCP/IP model and layers"
you'll find out that your phone hotspot is just managing the network and the IP layers (as you already noticed)
above those two layers you (I mean your APP and your ESP) have to take care of the transport and the application
examples are TCP for transport and HTTP or MQTT for application
whatever you'll choose, your ESP (or your APP) will have to act as a server and will state the port while the APP (or the ESP) will have to act as a client and will have to know the port to connect to the server
While in UDP mode, the ESP is still a client but it can grab a port number with AT+CIPSTART command but the same does not go in TCP mode.