Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

naming 1

Status
Not open for further replies.

yama

Programmer
Jun 28, 2001
69
SG
Hi,
I am using tomcat 3.1 and JBuilder 4 for my jsp pages, Everytime I webrun my pages, the address it give me is always the ipaddress:8080, is there any way to change the ipaddress to a domain name?for example, thanks!
 
Change the port that Tomcat listens on to 80. Goto TOMCAT_HOME\conf. Open server.xml and change the following entry from:

<Connector className=&quot;org.apache.tomcat.service.SimpleTcpConnector&quot;>
<Parameter name=&quot;handler&quot; value=&quot;org.apache.tomcat.service.http.HttpConnectionHandler&quot;/>
<Parameter name=&quot;port&quot; value=&quot;8080&quot;/>
</Connector>

TO

<Connector className=&quot;org.apache.tomcat.service.SimpleTcpConnector&quot;>
<Parameter name=&quot;handler&quot; value=&quot;org.apache.tomcat.service.http.HttpConnectionHandler&quot;/>
<Parameter name=&quot;port&quot; value=&quot;80&quot;/>
</Connector>


Now you don't have to specify the port when connecting to your pages since 80 is the default port for HTTP. Wushutwist
 
oh...thanks alot for you help, I have change the configuration. Hmm...is there any way to change the 11.22.33.145 to a domain name without using domain name server? 'cos i am using windows 98 to develop my webpages, thanks alot!
 
No, but you can refer to the address by the computer's name if you are on the same network. Example:
Code:
[URL unfurl="true"]http://11.22.33.145/test.jsp[/URL]
[URL unfurl="true"]http://mycomputer/test.jsp[/URL]
Wushutwist
 
i see, thanks alot then =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top