Recently learning android with pc via socket interconnect?
When do the server PC, android emulator to connect PC to connect with 10.0.2.2 success.
Android emulator to do with the server side, PC use what ip connection to success? Advice. . . .
Reply:
Try the same IP network!
Reply:
pc via adb forward port redirection, ip 127.0.0.1
are usedReal machine up, you try it on the simulator ...
Reply:
10.0.0.5
Reply:
Assume that your environment is
• A is you development machine
• B is your first emulator instance, running on A
• C is your second emulator instance, running on A too
and you want to run a server on B, to which C will connect, here is how you could set it up:
1.Set up the server on B, listening to 10.0.2.15:
2.On B's console, set up a redirection from A: localhost:
3.On C, have the client connect to 10.0.2.2:
For example, if you wanted to run an HTTP server, you can select
• B listens on 10.0.2.15:80
• On B's console, issue redir add tcp: 8080:80
• C connects to 10.0.2.2:8080
Reply:
Or 10.0.2.2
Reply:
Landlord adults, my how Rom it?
No comments:
Post a Comment