Having trouble getting android emulator to connect to server via TCP socket

Tags: , , , ,
Posted in dotnet, vb, vb.net | 1 Comment »

I am trying to get the android emulator to simply connect with a server I set up on another computer. However, the connection is not being made.
It throws an exception on this line:

Socket s = new Socket(SERVER_IP, SERVER_PORT);

I have been messing around with this for hours. Does anyone have any idea what might be going wrong?

The server sets up the socket just fine, and waits for the message from the emulator.
Thanks in advance =)

Similar:

  1. My simple program runs on Android emulator, but not on my Nexus One To clarify, I have no trouble getting the Nexus One connected in developer’s mode. I can actually get Eclipse to “run” my program on my...
  2. Handshake between a PHP socket server and Flash AS3 Hi, What’s an example of a simple handshake between a php socket server and flash? A test I can run command line would be ideal,...
  3. How do I connect webapp VB/LINQ to a MySQL database server on a Linux I have a programmer who is using VB and LINQ; and I have a MySQL database that is running on a linux server. My programmer...
  4. C# client socket communicating with a Java server socket using readObject() … I’ve got a Java server daemon, spawning threads to handle client requests. The requests come via sockets, and the Java server uses readObject() to recieve...
  5. Flex socket crossdomain I am trying to connect to a socket server from flex. I read, on adobe’s documentation, the client automatically sends a “request-policy-file” xml element to...

Tags: , , , ,

One Response to “Having trouble getting android emulator to connect to server via TCP socket”

  1. Ken says:

    I am having the same issue. Did you fins a solution?

Leave a Reply