title: urllib error of Google App Engine & python.[Errno 11003] getaddrinfo failed
body: <p>Thanks for your help in advance!</p>
  
  <p>I want to get contents of a website, so I use <code>urllib.urlopen(url)</code>.</p>
  
  <pre><code>set url='http://localhost:8080'(tomcat page)
  </code></pre>
  
  <p>If I use Google App Engine Launcher, run the application, browse <code>http://localhost:8082</code> , it works well.
  But if I specify the address and port for the application:</p>
  
  <pre><code>python `"D:\Program Files\Google\google_appengine\dev_appserver.py" -p 8082 -a 10.96.72.213 D:\pagedemon\videoareademo`
  </code></pre>
  
  <p>there's something wrong:</p>
  
  <pre><code>Traceback (most recent call last):
  File "D:\Program Files\Google\google_appengine\google\appengine\ext\webapp\_webapp25.py", line 701, in __call__
    handler.get(*groups)
  File "D:\pagedemon\videoareademo\home.py", line 76, in get
    wp = urllib.urlopen(url)
  File "C:\Python27\lib\urllib.py", line 84, in urlopen
    return opener.open(url)
  File "C:\Python27\lib\urllib.py", line 205, in open
    return getattr(self, name)(url)
  File "C:\Python27\lib\urllib.py", line 343, in open_http
    errcode, errmsg, headers = h.getreply()
  File "D:\Program Files\Google\google_appengine\google\appengine\dist\httplib.py", line 334, in getreply
    response = self._conn.getresponse()
  File "D:\Program Files\Google\google_appengine\google\appengine\dist\httplib.py", line 222, in getresponse
    deadline=self.timeout)
  File "D:\Program Files\Google\google_appengine\google\appengine\api\urlfetch.py", line 263, in fetch
    return rpc.get_result()
  File "D:\Program Files\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 592, in get_result
    return self.__get_result_hook(self)
  File "D:\Program Files\Google\google_appengine\google\appengine\api\urlfetch.py", line 365, in _get_fetch_result
    raise DownloadError(str(err))
  DownloadError: ApplicationError: 2 [Errno 11003] getaddrinfo failed
  </code></pre>
  
  <p>The strangest thing is when I change the url form "<code>http://localhost:8080</code>" to "<code>http://127.0.0.1:8080</code>", it works well!</p>
  
  <p>I googled a lot, but I didn't find any good solutions.Hoping for some help!
  Also, I didn't configure any <strong>proxy.IE</strong> works well.</p>