Every mobile operator implements their systems differently. As far as I
know, T-Mobile no longer supports public IP's of devices on their data
plans. For sure, they disable multicast on consumer networks because that is
a big security whole. So in short (assuming my info is up-to-date), you
can't do direct communication.

To get around this, you can setup a relay/rendezvous (R1). So PeerA and
PeerB know about R1 and contact it sending messages. PeerA sends message X
to R1. When PeerB polls R1, R1 relays PeerA's message to PeerB. Some
operator implementations of WAP Push work in a very similar way, as well.

JXTA (http://jxta.org) is an open-source framework that handles a lot of
this type of stuff. For IM specific messaging, there is Jabber (
http://jabber.org).

On Thu, Jul 1, 2010 at 8:44 AM, WuffIT Tech <wuffi...@gmail.com> wrote:

> I understand that the IP is subject to change but that is not my
> concern.  If a connection is dropped, I can always send the other
> phone my IP address and reconnect.  I have come to the conclusion that
> there is not a way to do this without actually using a third party
> server.  My question now is how should I implement this server.  Any
> good server examples out there that is similar to what I need?  My
> overall objective is to have a server that will route a message from
> one phone to another like an IM program.
>
> On Jun 15, 5:47 am, Matthew Powers <mtpow...@gmail.com> wrote:
> > I would worry about your IP address changing as you move in and out of
> > different networks, your IP address is not constant
> >
> > On Thu, Jun 10, 2010 at 2:40 PM, WuffIT Tech <wuffi...@gmail.com> wrote:
> > > Hi,
> >
> > > 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.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com>
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Shane Isbell (Founder of ZappMarket)
http://apps.facebook.com/zappmarket/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to