Would it be possible to get the IP of Android Phone for P2P connection, Actually i want to connect two android Phones via Sockets ?
Asked
Active
Viewed 4,032 times
2
-
Over what kind of network? 3G? Both on same Wifi? – David Schwartz Jun 22 '12 at 10:40
-
1@david not on same wifi. i means on internet. let one person is in US and other is in UK. Is it possible – Zeeshan Chaudhry Jun 22 '12 at 10:58
-
If you're trying to do peer-to-peer communications between two devices that may both be behind NAT or 3G, that's a very advanced case that should not be attempted until you have significant expertise in client/server and simpler peer-to-peer cases (such as both on same Wifi). – David Schwartz Jun 22 '12 at 10:59
1 Answers
1
I believe you'll need a central server which helps with peer discovery. That's not all even getting IP might not be enough you'll have to work around issues like Net traversal ..this may help Android: NAT Traversal?