title: java.net.UnknownHostException: Invalid hostname for server: local
body: <p>What are the steps I should take to solve the error:</p>
  
  <pre><code>java.net.UnknownHostException: Invalid hostname for server: local
  </code></pre>
  
  <p>I added the new virtual host name at Android emulator but the result returns to</p>
  
  <pre><code> java.net.UnknownHostException virtualhostname at 
    java.net.InetAddress.lookUpHostByName(InetAddress.java:506)
  </code></pre>
  
  <p>When I type my virtualhost URL on my PC, it works on display. Then again, when I ran on Emulator and check on Logcat, I couldn't be able to read or check the HTTP status if 200, 202, or an error code number. It simply returned to <code>UnknownHostException</code></p>