+ Reply to Thread
Results 1 to 2 of 2

Thread: Can we change Tomcat default port no. if yes then how can we change it.?

  1. #1
    Emerald Star member KapilAsdhir is on a distinguished road
    Join Date
    Feb 2010
    Posts
    215

    Default Can we change Tomcat default port no. if yes then how can we change it.?

    Can we change Tomcat default port no. if yes then how can we change it.?
    Thanks & Regard's
    Kapil Asdhir

  2. #2
    Emerald Star member KapilAsdhir is on a distinguished road
    Join Date
    Feb 2010
    Posts
    215

    Default

    Yes we can change it, Tomcat use 8080 port instead of 80 port. User can easily change default port from tomcat. Open c:/tomcat/config/server.xml folder in tomcat installed and open server.xml file.

    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443" acceptCount="100"
    connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to 0 -->

    In connector port change 8080 to 80, now save this save and shutdown.bat tomcat and startup.bat tomcat.This time user need not to write 8080 port in http://localhost/
    Thanks & Regard's
    Kapil Asdhir

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts