tomcat - Connection timed out exception in java HttpClient library but not through chrome browser? -
i have blocked port 8070 following command:
sudo iptables -a input -p tcp --destination-port 8070 -j drop now, when deploy web application in embedded tomcat 7 on port 8070, , if access through url http://localhost:8070/app or http://192.168.1.3:8070/app, exception connection timed out. usual because have blocked port.
but when access url http://192.168.1.3:8070/app through chrome browser, connection timed out error message. expected. but when try access http://localhost:8070/app through chrome browser, gives me successful response. unusual.
why able access through browser on localhost, not through apache httpclient library?
chrome uses ipv6 can resolve localhost using that, other examples using ipv4. check hosts file if contains ::1 entry localhost?
you can try no ipv6 chrome command line flag:
--disable-ipv6
Comments
Post a Comment