Yes, it could be because the two phones are behind different NATs. I did this years ago on two Blackberries on Cingular. I opened a ServerSocketConnection on the initiating phone, got the IP address/ port and sent it in an SMS to the other phone (which was also listening on a ServerSocket Connection on a well-known port). Today, I think you can probably register the app on the receiving phone to automatically wake up via some sort of "Push Registry" technology when it receives the SMS and then extract the IP address/port in the SMS and connect to the initiating phone. This worked because the two Blackberries were behind the same NAT. If your devices are not behind the same NAT, then your initiating phone needs to somehow obtain its public IP address to put into the SMS. There are standards for finding public IP addresses, such as STUN and NAT-PMP.
On Jun 15, 7:34 am, Cairo <[email protected]> wrote: > I've tried this previously for iPhones and usually the network blocks > outgoing ports, so you can only connect them via a server. > > On Jun 11, 4:50 pm, WuffIT Tech <[email protected]> wrote: > > > > > I am new to this forum and I would like to throw out this question and > > hopefully someone can point me in the right direction. I am developing > > an Android application and I would like to setup a tcp/ip type of > > connection between two Android phones using the 3G/Edge network. My > > test version will establish a connection if I have both phones on a > > lan using wifi but when I use T-Mobile's network a connection is not > > established. Could this issue be a port or ip address? Thanks in > > advance.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

