Hi
I have a weird problem with HttpURLConnection.
I'm running a servlet on a tomcat server. When I access it from a web browser through or it works fine. the weird thing happens when I access it through an external client I wrote, that uses HttpURLConnection. I'm doing
I have a weird problem with HttpURLConnection.
I'm running a servlet on a tomcat server. When I access it from a web browser through or it works fine. the weird thing happens when I access it through an external client I wrote, that uses HttpURLConnection. I'm doing
Code:
HttpURLConnection conn = (HttpURLConnection) url.openConnection();[code]
and if I'm using [URL unfurl="true"]http://localhost:8080/servletname[/URL] it works fine, but if I'm using [URL unfurl="true"]http://computername:8080/servletname[/URL] it throws an IOException with timeout error.
any suggestions?