开发者

Android Emulator connect to server

开发者 https://www.devze.com 2023-01-24 02:30 出处:网络
You are my last hope. I think read everything about it but I don\'t under开发者_StackOverflow社区stand it. I have an app that opens a socket on port 90 and connects to a server on the internet. It wor

You are my last hope. I think read everything about it but I don't under开发者_StackOverflow社区stand it. I have an app that opens a socket on port 90 and connects to a server on the internet. It works on my Android tablet but not in the Android emulator. I know that i have to forward the port but I don't know how. I thought the command is "redir add tcp:90:90" but this does not work.

I need the command so I can connect to an internet adress with port 90.

Can anyone help me?


Hmm i found out it works sometimes and sometimes it does not work ....
Probably a bug in the emulator.


a client-server app, huh? ok... this what i did with my voip client-server app. Assuming the client is on the emulator and the server is on the same machine as the emulator. point the client on your emulator to 10.0.2.2, have u done that? if not that may b ur problem.

read on Network Address Space at http://developer.android.com/guide/developing/tools/emulator.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号