Networking from emulator instance and dev machine(localhost)

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Networking from emulator instance and dev machine(localhost)

Postby p4squ1 » Mon Oct 19, 2009 3:26 pm

Hi all! I'm a newbie on programming with android and I have the following problem:

I don't be able to connect the emulator's instance with my dev machine. In the emulator's instance is configured a client that have to connect on UDP with a server that running in my dev machine. The client is setted to communicate on address 10.0.2.2(my "127.0.0.1" dev machine) on port 4444. The server is listening on address 127.0.0.1 on port 4444. The client send the packet, but the server don't receive them. What are the problem???

I'm grateful who will help me!! PLEASE!!
p4squ1
Freshman
Freshman
 
Posts: 8
Joined: Fri May 15, 2009 10:18 pm
Location: Italy

Top

Postby p4squ1 » Mon Oct 26, 2009 4:08 pm

It's possible that more than 50 people of this forum read this post and anybody can help me?!?!?!
p4squ1
Freshman
Freshman
 
Posts: 8
Joined: Fri May 15, 2009 10:18 pm
Location: Italy

10.0.2.2 is your LAN address?

Postby loadao » Tue Nov 24, 2009 7:50 am

try 127.0.0.1 as your host ip in your client code....
loadao
Freshman
Freshman
 
Posts: 2
Joined: Tue Nov 24, 2009 7:40 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests