Using Amazon EC2 I have successfully launched a Windows Server 2012 instance and configured it to run a Tomcat webserver.

From within the VPS itself, I know the webserver is working because I see the Tomcat page in a web browser when I type http://localhost:8080.

However, I am unable to access it externally even though I've created a rule in the security group to allow incoming traffic on port 8080 from all addresses (

Typing 'curl -v http://ec2-54-194-6-178.eu-west-1.compute.amazonaws.com:8080' returns:

  • About to connect() to ec2-54-194-6-178.eu-west-1.compute.amazonaws.com port 8080 (#0)
  • Trying
  • Operation timed out
  • couldn't connect to host
  • Closing connection #0 curl: (7) couldn't connect to host

I also have a Linux instance running that is using the same security group. I am able to connect to that just fine.

I don't know much about configuring Tomcat but I also added address="" to the config file, server.xml just in case that was a potential cause.

<Connector port="8080" protocol="HTTP/1.1"
           address="" />

Any ideas how to resolve this would be greatly appreciated.

  • 1
    Have you checked windows firewall? – boburob Jan 20 '14 at 15:54
  • @boburob I figured it out eventually. I was able to connect to the Tomcat web-server by turning off the Windows firewall. Was coming back here to post an update and saw your comment. Thanks, anyway. – ksl Jan 20 '14 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.