How do I Resolve Hostnames

Discussion in 'iPod touch' started by hwfa, Jul 27, 2009.

  1. hwfa

    hwfa New Member

    Joined:
    May 25, 2008
    Messages:
    23
    Likes Received:
    0
    Device:
    iPod touch
    I'm running an iPod Touch v2.2 (jailbroken).

    I also have a Windows XP Pro machine that runs the Apache web server. On this I have written a Perl application that gets executed from a JavaScript/HTML page. This all works. I can use Safari on my iTouch to run the JavaScript and thus the application which then displays results correctly in a Safari page.

    However, this *only* works if I specify the IP address of my Windows machine thus:
    http://192.168.1.64/myPerlApp

    But this means I have to *fix* the IP address of the Windows machine. Now, obviously, the Windows machine has a name. My other computers (Windows and Linux) can all happily use the name. So they can all do:
    http://myHost/myPerlApp

    The iPod Touch doesn't seem to be able to do this

    Please Register or Log in to view images



    So, how do I persuade the iPod Touch to cooperate with virtually every computer made since about 1985 and use hostnames instead of fixed IP addresses on my local network?
  2. mohaas05

    mohaas05 New Member

    Joined:
    Jan 31, 2009
    Messages:
    1,260
    Likes Received:
    0
    Device:
    4G iPod touch
    Does the iPod have an /etc/resolv.conf? Check it.
  3. hwfa

    hwfa New Member

    Joined:
    May 25, 2008
    Messages:
    23
    Likes Received:
    0
    Device:
    iPod touch
    No, it doesn't. I made one. It makes no difference.

    There is a hosts file. If I add the Apache server's current IP address & name there then it works but, of course, that relies on using fixed IP addresses. I suppose I could live with that

    Please Register or Log in to view images

Share This Page