Change Apache Tomcat default Port 8080 to other Port number
- apache-tomcat-6.0.18 (works with previous versions of Tomcat)
Tomcat will run by default on TCP/IP port number 8080. But there can
be situations where there are some other servers running on this same
port forcing you to change the port of one of the servers. This
article explains how to change the port number from 8080 to some other
- 1. Navigate to
(The place where you have installed tomcat)
- 2. In server.xml file locate
(You can find something similar to the above snippet in server.xml. It varies according to tomcat version)
change Connector port="8080" to Connector port="8081" or some other port number. Make sure that the port number in not used by some other application.
- 3. Save and restart tomcat.
- 4 .Now try running with the new port number i.e. http://localhost:8081
Mappings of IP addresses to hostnames
(Change localhost to some other name)
- Windows XP
- 1. Navigate to
start->All Programs->Run-> type 'drivers' (Without quotes)->etc
- 2. Open the file host with a text editor and change
- 3. Restart Tomcat and Try http://projectname:8080/
# host file contains the mappings of IP addresses (in our case
#host names (localhost). Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 126.96.36.199 rhino.acme.com # source server
# 188.8.131.52 x.acme.com # x client host
http://www.javaworkspace.com/addSocialBookmarkingService.do Online Advertising Programs