title: able to connect to localhost but not with webserver from my android app
body: <p>Hi I am able to connect my android application to localhost but not with webserver. I am trying to call a php script to get data from server in json format, when I am trying the url address on browser ,script is working fine and same script is also working fine on localhost, but urlconnection timeout while connecting to webserver. Please find the code below of connector(where connection timeout is occuring) i also give the code of my downloader(just in case) which is extending async task and this method downloaddata is called by doinbackground.
  I have already tried changing read and connectiontimeout
  I am using godaddy for hosting.
   Please help I am unable to find solution anywhere.
  here is the image of the code and log.</p>
  
  <p>Image of connector</p>
  
  <p><a href="https://i.stack.imgur.com/XR44S.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XR44S.jpg" alt="enter image description here"></a></p>
  
  <p>Image of downloader
  <a href="https://i.stack.imgur.com/Ayl25.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ayl25.jpg" alt="enter image description here"></a></p>
  
  <p>Image of logs while connecting to webserver
  <a href="https://i.stack.imgur.com/6b5cF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6b5cF.jpg" alt="enter image description here"></a></p>