hi,
i am a student, and developp a application on android for my project in
school.I use android release 1.1 and the android emulator.I would to use the
socket in my application.I have use the package java.net.socket and
java.iobut i don't have a success.My code is below.Please help me.I
don't kn
Thanks for the replies,
Just realised that my phone operator is using NAT.
However I think trying to implement it this way, and then for it to
maybe work isn't ideal, and probably not worth the hassle.
So i'm looking into other options of connecting to the phone.
Thanks again.
On Mar 20, 6:
On Fri, Mar 20, 2009 at 7:12 AM, Daniel Janev wrote:
>
> If the device is not connected to any WiFi network it will not be
> accessible at all :) Probably using GPRS or EDGE you'll release "some"
> IP address but you won't be able to access the phone using this address.
> For my suggestion is to
Hi, there is the Socket method : Socket.getLocalAddress().toString();
On Mar 20, 2:50 pm, Cadge wrote:
> Ok but what about if the device is not connected to Wifi, is there an
> easy way to get the IP address and use sockets as above?
>
> Thanks again.
>
> On Mar 20, 1:28 pm, Daniel Janev wrote:
Hi, there is the Socket method : Socket.getLocalAddress().toString();
2009/3/20 Cadge :
>
> Ok but what about if the device is not connected to Wifi, is there an
> easy way to get the IP address and use sockets as above?
>
> Thanks again.
>
> On Mar 20, 1:28 pm, Daniel Janev wrote:
>> Hi
Ok so doing it that way is out of the question.
Is there an alternative way that this could be achieved ? i.e send
data from the client machine to the android sever without having to be
connected on WiFi?
On Mar 20, 2:12 pm, Daniel Janev wrote:
> If the device is not connected to any WiFi netwo
If the device is not connected to any WiFi network it will not be
accessible at all :) Probably using GPRS or EDGE you'll release "some"
IP address but you won't be able to access the phone using this address.
For my suggestion is to connect the device to a WiFi and afterwards to
connect to the ph
Ok but what about if the device is not connected to Wifi, is there an
easy way to get the IP address and use sockets as above?
Thanks again.
On Mar 20, 1:28 pm, Daniel Janev wrote:
> Hi,
>
> Here is your problem:
>
> ...
> socket = new Socket("127.0.0.1", 1234);
> ...
>
> Youhave to use
Hi,
Here is your problem:
...
socket = new Socket("127.0.0.1", 1234);
...
Youhave to use the IP address the device has :) "127.0.0.1" means
localhost :) Just find the IP address (probably you use WLAN of the
device) and use it in your test.
Cadge wrote:
> Basically what I want to achi
9 matches
Mail list logo