Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use Tomcat to connect to my web server IP?

 
eric lee
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created my own web-server,so how to use Tomcat
to connect to my ip insted of localhost/8080? Thank.

ps:
use Win2000 advance server
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you might give more information for some help - this question doesnt make sense. Do you want your server to be available on the internet?
Tomcat is the web server and it will no doubt be connected to your "IP" - if you know you ip address then try connecting to it now with :8080 appended.
as well as you ip addres, your localhost address is mapped to 127.0.0.1 a "loopback" address that just uses you local network to connect the computer to itself. If yuo want to change the port that tomcat uses you need to look in the server.xml file within your /config folder inside the tomcat installation. Somewhere in there you can change 8080 to 80 which will mean you can just use localhost. If you now know you ip address try that without a number.
 
eric lee
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,chanoch wiggers:
i change server.xml 8080 to 80 and shutdown IIS
Server but it does not work.If i use tomcat port 8080 and turn on IIS, i type http:128.164.64.4:8080/index.jsp,it still can not work too.Thanks
 
eric lee
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or how to combine Tomcat+IIS together
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe there are posts addressing this subject in the Tomcat forum. You might want to look through that forum to see if your needs are discussed.
hth,
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic