I am developing an application that query to the server. In my Mac, I use the hosts file to change the dns to point to a local server within my local area network.
Now I need to test it with my iPhone, the problem is that my iPhone does not recognize that server due to the missing configuration for dns.
On my Mac or Windows, I simply add: 192.168.0.20 http://www.google.com
to the hosts file.
Now how do I let my iPhone know the URL: http://www.google.com
?
/etc/
and open the file calledhosts
in the text viewer. Now you can edit it. – Rafaelarafaelia