File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes how to avoid port number in url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to avoid port number in url" Watch "how to avoid port number in url" New topic

how to avoid port number in url

zimbu bolleddu
Ranch Hand

Joined: Jan 14, 2008
Posts: 35
Hi all,

now I'm using to access my application like :

http://system ip:8080/application

but I don't want to use like that, instead of that I want like some name ( in local intranet.

I heard like have to change in host file from operating system .

I'm using windows xp to develop the applications and target system is windows 2008 server.

my webserver is tomcat 6.0

please help me out.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41108
The port is set in the TOMCAT_HOME/conf/server.xml file; search for "8080". If you use "80" -which is the default port for HTTP- you don't need to specify it in the URL. You'll need to restart Tomcat after making this change. Make sure you don't have IIS running on port 80.

Ping & DNS - my free Android networking tools app
It is sorta covered in the JavaRanch Style Guide.
subject: how to avoid port number in url
Similar Threads
Connecting Java Application with a Database
Virtual memory too low while starting WLS 9.0
Java System Application Server 9 Main Context root
Original 2D shooter game to test out!
File System Events [JNI]