Firewall – How to open a port on windows server

firewallwindows-firewallwindows-server-2008

I have a Windows 2008 server on Amazon EC2. I have installed Jboss 7 server on pot 8080 (IIS is running on port 80). When I execute http://localhost:8080 from within the server on a browser it works fine. But when I access same from outside http://IPaddress:8080 the request times out. Please note http://IPaddress works fine and points to IIS app.

I looked around in this forum and found a couple of useful commands

netstat -a -n correctly displays that port 8080 is listening

Then I added 4 rules in Windows firewall, 2 for inbound traffic on port 8080 for UDP and TCP and 2 for outbound traffic on port 8080

Now when I do netsh firewall show state, it shows port 8080 for both UDP and TCP under heading "ports currently open on all network interface"

Is there anything I am missing? How can I access port 8080 from Internet for this server

Best Answer

My bad! The issue was actually with Jboss setup. Jboss does not run by default in broadcast mode.

Jboss 7 comes with a setup file standalone.xml which has a tag <interface name="public">, this is by default to set to 127.0.0.1. I needed to change it to <any-address>

For details

https://stackoverflow.com/questions/6853409/binding-jboss-as7-to-all-interfaces

Related Topic