iPhone Custom Hosts

Discussion in 'Web Design and Development' started by davecuse, Apr 9, 2009.

  1. davecuse macrumors 6502

    davecuse

    Joined:
    Feb 20, 2004
    Location:
    NYC
    #1
    I'm working on a web app, trying to test it out on my iphone. This app uses subdomains as account keys, so I need to be able to access my MacBook via both

    test1.localhost.dev:3000
    test2.localhost.dev:3000

    In OSX I simply add the following lines to my "hosts" file;

    127.0.0.1 test1.localhost.dev test2.localhost.dev

    The problem I'm having is that when you hit the app using the MacBook's IP address the app blows up because it doesn't recognize the domain, and there's no subdomain.

    How do I update the hosts file on my iPhone?
     
  2. Me1000 macrumors 68000

    Me1000

    Joined:
    Jul 15, 2006
    #2
    Short of jailbreaking the phone I don't believe there is any way to edit your hosts file.
     

Share This Page