Question

Can i use Tcp Sockets to connect two Android Devices(not Emulators) giving the proper IP adress taken by a WIFI network? Should i do port forwarding through a specific port? Is it possible to open a port programmatically using system calls?

Was it helpful?

Solution

Can i use Tcp Sockets to connect two Android Devices(not Emulators) giving the proper IP adress taken by a WIFI network? Read up on this: http://developer.android.com/guide/topics/wireless/wifip2p.html

Should i do port forwarding through a specific port? From taking a quick peak at that site it seems to you have to do it, however i suggest that you read the link and see for yourself.

Is it possible to open a port programmatically using system calls? Not anyway that i know if, have to log into your router and open it.

OTHER TIPS

Q: Yes, absolutely

Here's a good link (one of many, including the Android documentation):

http://android-er.blogspot.com/2011/01/simple-communication-using.html

Basically, "sockets are sockets". No problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top