Dave
Dave

Reputation: 769

android: mapping hostname to ip

There is a file called hosts on windows/linux to map server name to ip address. Is there a way for android?

 192.168.1.22  domain1.com     
 192.168.1.22  domain2.com

The reason for this is to test web app running on windows machine using HTTPS.

Upvotes: 0

Views: 6033

Answers (1)

jdunlop
jdunlop

Reputation: 207

Similar question, different StackExchange site:

https://android.stackexchange.com/questions/60150/how-to-edit-etc-hosts-file

In general, ADB is your friend. You will also need to turn on Developer Mode, but I expect that you're already doing that as part of development.

/etc/hosts is still /etc/hosts, since Android is Linux at its heart.

Upvotes: 1

Related Questions