android client socket connection

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

android client socket connection

Postby sansumi » Wed Mar 04, 2009 1:36 pm

i have created client program(native code using sockets) in android which is running on ubuntu (which is on virtual machine in windows xp), i am trying to send data to http server in host machine (i.e WIN XP)

this client program is using sockets to send data
i am using host ip address as destination address, to send data

my ubuntu ip address is shown 10.0.0.2
my host address is 1.2.3.4

whenever i send a data send is successful

but server in host machine not receiving the data :(


please help me what can i do find out who is reciving?
and how send data to server running on the same machine?

(i can connect to internet from android emulator)
sansumi
Freshman
Freshman
 
Posts: 3
Joined: Mon Mar 02, 2009 3:42 pm

Top

Postby Azalar » Wed Mar 04, 2009 5:38 pm

The client program will be running on a different network address range(which is also virtual) and not exposed to your host machine as that will be on a different network range.
Does your virtualization software allow you to expose the network connection somehow?
Azalar
Junior Developer
Junior Developer
 
Posts: 24
Joined: Tue Jan 13, 2009 6:09 pm

Postby sansumi » Thu Mar 05, 2009 8:47 am

from my virtual machine i can able to browse , ping host address ( 1.2.3.4)
sansumi
Freshman
Freshman
 
Posts: 3
Joined: Mon Mar 02, 2009 3:42 pm

Postby Azalar » Thu Mar 05, 2009 11:20 am

I would recommend installing a program like Wireshark which is a network protocol analyzer that you can use to watch where all the packets are going.
http://www.wireshark.org/
Azalar
Junior Developer
Junior Developer
 
Posts: 24
Joined: Tue Jan 13, 2009 6:09 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Google [Bot] and 3 guests