I'm creating an app to establish communication between two android mobiles
through the internet using TCP sockets. So, I'll primarily be using ip addresses of the two mobiles
with my fancy app port no.
Is this possible? To create custom TCP ports and communicate over the internet like in a LAN?
So far i'm able to successfully communicate between two emulators in a LAN . But it's not possible to do the same thorugh the internet in case of emultors cos usually the host machine is behind a router
that allows only data to the port 8080
or 80
i'm not sure. Of course there are port forwarding that can be done, but i don't wanna get dirty with that.
so,
Does emulator connection in LAN guarantee mobile
connection in the internet? cos in case of mobile with direct net connectivity
there is only single ip address(no private and external ip) and no router to bar the trafffic.