Re: Can I configure Tomcat to accept HTTP requests from remotemachines?
http://localhost:8080 will just be an alias for http://127.0.0.1:8080 - so doing it on another computer means that you're just trying to request the computer that you are doing the request on. Instead - find out what the ip address is, using ipconfig, or winipcfg (I can never rememeber which is used where)... and use http://192.168.0.1:8080 - replacing 192.168.0.1 witht he IP address. hth dim On Thu, 13 Sep 2001, Raymond Reid wrote: Can I configure Tomcat to accept http requests from remote IP addresses without running another web server at the same time? I currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6. After configuring Tomcat, I can enter http://localhost8080 into the location field in my browser and see the welcome page. But when I try to access the same page from a different computer using the IP address of the machine I have Tomcat running on, the page won't come up. Do I need to be running Apache with Tomcat to access pages remotely? If someone could please point me in the right direction, I would really appreciate it. Thanks, Ray
RE: Can I configure Tomcat to accept HTTP requests from remotemachines?
I presume you are able to ping the IP addr from the other computer. If you can access Tomcat locally (localhost:8080), you should most certainly be able to access it remotely (e.g. http://192.163.1.100:8080). If not already, don't forget to suffix the IP addr with the port # (8080) IF the above still doesn't work, what error do you get? cheers, Tony -Original Message- From: Raymond Reid [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 10:16 AM To: [EMAIL PROTECTED] Subject: Can I configure Tomcat to accept HTTP requests from remote machines? Can I configure Tomcat to accept http requests from remote IP addresses without running another web server at the same time? I currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6. After configuring Tomcat, I can enter http://localhost8080 into the location field in my browser and see the welcome page. But when I try to access the same page from a different computer using the IP address of the machine I have Tomcat running on, the page won't come up. Do I need to be running Apache with Tomcat to access pages remotely? If someone could please point me in the right direction, I would really appreciate it. Thanks, Ray
RE: Can I configure Tomcat to accept HTTP requests from remotemachines?
Interesting,y, if I don't have the inet config line at all in my server.xml, I can access the running Tomcat both locally and remotely without any server.xml config change! - Tony -Original Message- From: Peter Davison [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 10:31 AM To: [EMAIL PROTECTED] Subject: Re: Can I configure Tomcat to accept HTTP requests from remote machines? Hi Ray. localhost is just that - it is accessible only to the local machine. In order to make your server accessible to other machines you need to specify it's IP address in the server.xml file. In the connectors section of server.xml you need to replace 127.0.0.1 with the IP of your machine. !-- Normal HTTP -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=inet value=127.0.0.1/ Parameter name=port value=8080/ /Connector Once you've done this a restarted you can access your webserver remotely by specifying the actuall IP and port number in use. Hope that helps. Pete. On Thu, 13 Sep 2001 10:16:10 -0400 Raymond Reid [EMAIL PROTECTED] wrote: RR Can I configure Tomcat to accept http requests from remote IP addresses RR without running another web server at the same time? I RR currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6. After RR configuring Tomcat, I can enter http://localhost8080 RR into the location field in my browser and see the welcome page. But RR when I try to access the same page from a RR different computer using the IP address of the machine I have Tomcat RR running on, the page won't come up. RR RR Do I need to be running Apache with Tomcat to access pages remotely? If RR someone could please point me in the right RR direction, I would really appreciate it. RR RR Thanks, RR Ray