This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "port" Watch "port" New topic
Author

port

manogna edintipal
Ranch Hand

Joined: Aug 16, 2005
Posts: 51
How can I change the port no of tomcat

i mean my server is accessd from browser as "http://localhost".

How can i change it to access as "http://localhost:8080"

Thanks in advance


Sanju
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Look in conf/server.xml file. There are all settings for tomcat.


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41147
    
  45
You will run into difficulties assigning any port under 1024 (assuming this is a Unix-ish OS), because those ports require root privileges. In that case you may need to front Tomcat with Apache.


Ping & DNS - my free Android networking tools app
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Looks like the change should be from 80 to 8080, which is really strange. I suppose 8080 is by default.
Are you using web server with tomcat?
 
 
subject: port
 
Similar Threads
JDK 6 UPDATE 15, Includes JWSDP so it does not need install separatelly, like 5 ver?
problem configuring tomcat 4.0.3 under win 98
how to cahnge server name and port number in tomcat
help ,I install apache2054,it can start,but nothing appear.
changing oas listener port