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.
Image of connector