Actually i use the IP used by the LAN to identify my machine. Still have the
same issue


2010/7/5 Indicator Veritatis <[email protected]>

> "Real IP"? Which one? The one used by the LAN for identifying your
> machine, or the one NAT translates it to for the outside world to see
> the same machine?
>
> 10.0.2.2 is in the block reserved for the former, i.e., it is for
> internal use only: if you are trying to access it from the WiFi on
> your phone, also inside the LAN, that should work fine, unless your
> firewall is on super-paranoid settings; but if you are trying to
> access it over GSM/GPRS/Edge, you need the latter, a public address,
> AND you need to sure your server is accessible from outside your NAT
> and firewall.
>
> Can you access your server from another machine outside your LAN? I
> assume you can access it from inside, but thanks to NAT, you should
> not expect that to work with the same IP address: it is common not to
> be able to see external addresses from inside.
>
>
> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch01_:_Why_Host_Your_Own_Site%3F#Our_Network
> goes into considerable detail, including references, on all the issues
> surrounding the basic problem you are trying to solve: providing your
> own webserver in your small home/office net (LAN), and making it
> publicly accessible.
>
> On Jul 3, 8:27 am, Lamia Hannoun <[email protected]> wrote:
> > Hi !
> > Actually i've already  tried to use the real IP of my machine but it
> didn't
> > work, and yes my my LAN is behind NAT. Do u have any idea?
> > Thx
> >
> > 2010/7/2 HeHe <[email protected]>
> >
> > > is your LAN is behind nat?
> >
> > > On Jul 2, 7:22 am, Lamia Hannoun <[email protected]> wrote:
> > > > Hi !
> >
> > > > I actually want to deploy my app on a real phone after deploying it
> on a
> > > an
> > > > emulator.the problem is that i access to a web service (.net) hosted
> on
> > > my
> > > > machine , i used the address 10.0.2.2 to test it on emulator and
> everythg
> > > > went well, when i install my app on my htc i couldn't access to my
> web
> > > > service, i tried to change the address by using a real machine IP
> > > connected
> > > > to a LAN but it didn't work!!!
> >
> > > > Do u have any ideas to solve that issue.
> >
> > > > Thank you.
> >
> > >  --
> > > 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]<android-developers%[email protected]>
> <android-developers%[email protected]<android-developers%[email protected]>
> >
> > > 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [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

Reply via email to