RE: accepting requests from outside the host?

2009-02-16 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: accepting requests from outside the host?
>
> Strictly speaking, they can be the same port, as long
> as the  isn't bound to 127.0.0.1.

True, as long as you don't expect anything useful from pointing a browser to 
localhost:.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: accepting requests from outside the host?

2009-02-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 2/14/2009 9:49 AM, Caldarale, Charles R wrote:
>> From: Frank D. Greco [mailto:fgr...@crossroadstech.com]
>> Subject: RE: accepting requests from outside the host?
>>
>> I had the  port set to 8080
> 
> ??? The port attribute in the  element is the one Tomcat uses
> to listen for shutdown requests on 127.0.0.1; it *must not* be the same
> as the  port.

Strictly speaking, they can be the same port, as long as the 
isn't bound to 127.0.0.1. Practically speaking, they should not be the sa,e.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmZ2hYACgkQ9CaO5/Lv0PDAGACdF/27/+YXwbQWCV5El3bOLtAD
xsUAoIkqa0Ti9MH0Q5a0Ifs4DloORof5
=0ODR
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: accepting requests from outside the host?

2009-02-14 Thread Caldarale, Charles R
> From: Frank D. Greco [mailto:fgr...@crossroadstech.com]
> Subject: RE: accepting requests from outside the host?
>
> I had the  port set to 8080

??? The port attribute in the  element is the one Tomcat uses to listen 
for shutdown requests on 127.0.0.1; it *must not* be the same as the 
 port.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: accepting requests from outside the host?

2009-02-13 Thread Frank D. Greco



> I can't telnet or ping.  Our ISP sysadmin disabled those on
> the firewall.

Nice guy.


He said it was a security precaution.  Actually I don't
blame him.


> Someone else said I need to bind it to the ipaddr of the box
> (OpenSolaris btw), but I'm not sure how to do that.

Set the address attribute of your  element(s) in 
conf/server.xml to the desired IP address:

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html


Ah... I see what the problem was.

I had the  port set to 8080 but the  port
was still set to 80.  Once I set the Connector port to 8080,
I got in.

Thanks for your help Chuck!  I owe you one.

Frank G.
--
+==+
| Crossroads Technologies Inc. |
| www.CrossroadsTech dot com   |
| fgreco at REMOVEtheX!cross!roads!tech!dotXcom|
+==+
--


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: accepting requests from outside the host?

2009-02-13 Thread Caldarale, Charles R
> From: Frank D. Greco [mailto:fgr...@crossroadstech.com]
> Subject: RE: accepting requests from outside the host?
>
> I took a look at the tomcat process on my box and it has this:
>  sockname: AF_INET6 :::127.0.0.1  port: 8080

That's not pretty.  Must be some odd rules in place here (besides the IPv6).  
Is IPv4 disabled on this box?  The current JVM levels can't run IPv6 only.

> I can't telnet or ping.  Our ISP sysadmin disabled those on
> the firewall.

Nice guy.

> Someone else said I need to bind it to the ipaddr of the box
> (OpenSolaris btw), but I'm not sure how to do that.

Set the address attribute of your  element(s) in conf/server.xml to 
the desired IP address:
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

What version of Tomcat are you using, and what JRE/JDK?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: accepting requests from outside the host?

2009-02-13 Thread Frank D. Greco

Thanks for the response Chuck.

I took a look at the tomcat process on my box and it has this:

sockname: AF_INET6 :::127.0.0.1  port: 8080

Basically, its localhost.

I can't telnet or ping.  Our ISP sysadmin disabled those on the firewall.

Someone else said I need to bind it to the ipaddr of the box (OpenSolaris btw),
but I'm not sure how to do that.

Frank

> Can someone pls point me in the right direction on
> how to configure tomcat to accept browser requests
> from outside the box?

No configuration necessary - unless you changed something in server.xml, To=
mcat binds to 0.0.0.0, so it listens on all IP addresses configured for the=
 box it's running on.  There very likely *is* a firewall blocking port 8080=
 somewhere between your browser and the Tomcat system - it might even be on=
 your XP box at home.

Can you reach the target system with a ping?


--
+==+
| Crossroads Technologies Inc. |
| www.CrossroadsTech dot com   |
| fgreco at REMOVEtheX!cross!roads!tech!dotXcom|
+==+
--


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: accepting requests from outside the host?

2009-02-12 Thread Caldarale, Charles R
> From: Frank D. Greco [mailto:fgr...@crossroadstech.com]
> Subject: accepting requests from outside the host?
>
> Can someone pls point me in the right direction on
> how to configure tomcat to accept browser requests
> from outside the box?

No configuration necessary - unless you changed something in server.xml, Tomcat 
binds to 0.0.0.0, so it listens on all IP addresses configured for the box it's 
running on.  There very likely *is* a firewall blocking port 8080 somewhere 
between your browser and the Tomcat system - it might even be on your XP box at 
home.

Can you reach the target system with a ping?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org