Kartik_Koro
Kartik_Koro

Reputation: 1287

Connect to server on PC's network from android emulator

I'm designing an android app that communicates with a web server. Till now i was hosting the server on my localhost and was accessing it with 10.0.2.2 on the emulator. Now I need to access a server hosted on the company's network PC vserver36 with address 192.168.1.124. How do I do this on the emulator?

Upvotes: 1

Views: 1963

Answers (1)

HatemTmi
HatemTmi

Reputation: 1078

You have just to use the address 192.168.1.124 instead of 10.0.2.2 ;)

Upvotes: 2

Related Questions