-3

I have running my tomcat8 server on gnome-ubuntu 15.04 but dont know on which port.I read a tutorial which says something about firewall setting...please help

khan
  • 185
  • 1
  • 2
  • 8

1 Answers1

0

If you don't know on which port is Tomcat listening, you have to open server.xml file and seek for HTTP connector (The connector whose protocol attribute is HTTP/1.1). You will find something like this:

<Connector port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    redirectPort="8443" />

In that connector, port attribute is what you are looking for

If you installed Tomcat 8 from Ubuntu app repository, then you will find server.xml in /etc/tomcat8/server.xml. If you installed from tarball you will find it inside conf directory.

malaguna
  • 4,183
  • 1
  • 17
  • 33