presently iam running my application using the following url

http://127.0.0.1:8080/project

without giving the above ip address & port number, can any one suggest alternate way like

http://daniweb/project

thnx
rajesh

Recommended Answers

All 7 Replies

Change your application server/web container configuration to use port 80, rather than 8080, than use localhost.

Read the manual. It is all explained quite well. You simply need to change the address and port in the configuration. That's all. The manual will tell specifically how and where to do so.

presently iam running my application using the following url

http://127.0.0.1:8080/project

without giving the above ip address & port number, can any one suggest alternate way like

http://daniweb/project

thnx
rajesh

First change your web server port from 8080 to 80.
For tomcat for example open server.xml file from the given path like
C:\Programs\Apache Software Foundation\Tomcat 6.0\conf
and change following portion in this file.
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
It will be like given below.
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

then instead of writing http://127.0.0.1:8080/project
you can write http://yoursystemname/project
Regards,
Naeem Jamil

I guess it's just too hard to read documentation these days. So hard that other people need to do it for you, then write out their interpretation of what they read for you to read and interpret yourself.

So now two people have had to read and interpret something and who knows if what the "end user" understood and implemented is actually what the documentation said, but now one person has wasted their time waiting for someone else to read the documentation for them, and another person has wasted their time reading and regurgitating it.

i tried in tomcat server.xml, but didn't get any result

i want to run application without giving http://localhost:8080/project

.....Eg:http://raj/project

plz..

after changing in server.xml restart ur tomcat.
and what is "raj"
Is it ur system name? using localhost instead of raj and check what is result.

thnx for ur suggetions i got it........

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.