Skip to content Skip to sidebar Skip to footer

Can't Send Message Over Hotspot, Using Tcp Connection. Android

I'm creating an simple app, in which I want to send message over local wifi connection using TCP. So I'm creating hotspot on one device and connect it from other device. Now, on h

Solution 1:

You don't need to forward anything on device, just make sure your device is on the same network & use the port you have hard-coded or defined in the settings.

We forward port in emulator because its running on your host machine & we are telling the host to forward traffic coming on that specific port to emulator, since in an actual device you don't need to do that so you just to have to make sure your device is on the same network & correct port is being called.

Post a Comment for "Can't Send Message Over Hotspot, Using Tcp Connection. Android"