tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: How to access JSP and Servlet remotely ?
Date Tue, 18 Nov 2008 14:53:28 GMT
deathgod86 wrote:
> The error is:
> Connection timeout.
> 
> Or do i need to do some configuration on the xml in conf folder ?
> Or i need to install tomcat connector ?

No, nothing like that.  If your Tomcat access works when you do it from 
the same computer where Tomcat is running, but does not work when you do 
it from another computer, then there is simply some communication issue 
between the remote computer and the system where Tomcat runs.
There may be lots of reasons for that, and you have to eliminate them 
one by one.

Step 1 :
On the computer where Tomcat is running, open a browser and try 
"http://192.168.1.1:8080/myfile.jsp"
Does it work ?
(I mean, not "localhost", but really "192.168.1.1" as the server address)

Step 2 : are these two computers really on the same local network, 
without any kind of firewall or router between them ? (a hub is ok).
(because if they are not, addresses of the kind "192.168.x.y" will not 
work, they cannot cross a firewall or a router)

Step 3 :
On the computer where Tomcat is running, is the Windows Firewall service 
active ? If yes, turn it off and try again.

Step 4 :
  try this :
On this computer : Remote computer ip : 192.168.1.22
open a command window, and enter "telnet 192.168.1.1 8080"
What happens ?





> 
> Thx.
> 
> 
> 
> awarnier wrote:
>> deathgod86 wrote:
>>> I have installed Tomcat 6 in my personal computer (Win XP).
>>> However, I want this computer to act as server and I am accessing the JSP
>>> and Servlet placed on this computer remotely (access JSP and Servlet from
>>> another computer).
>>>
>>> Remote computer connect to this Tomcat computer via private network.
>>> Tomcat computer ip : 192.168.1.1
>>> Remote computer ip : 192.168.1.22
>>>
>>> I had tried accessing the JSP and Servlet on the Tomcat computer
>>> (192.168.1.1) and it is successful. (http://localhost:8080/myfile.jsp)
>>>
>>> So, my question is:
>>> How do I configure so that I can access the JSP and Servlet from another
>>> computer ?
>>> (Means using 192.168.1.22 access JSP and Servlet file on 192.168.1.1)
>>>
>>> I had tried http://192.168.1.1:8080/myfile.jsp and it failed.
>> How does it fail ? What do you mean exactly ?
>>
>> Do you mean that when you start a browser on "remote computer" (the one 
>> with the ip address 192.168.1.22), and asking for 
>> "http://192.168.1.1:8080/myfile.jsp" you get an error page in the 
>> browser ? what does the error page then tell you ?
>>
>>> *Please be note that, the computer installed tomcat is not a server, is
>>> just
>>> a normal pc.
>> That should not matter in this case.
>> Except if the Windows Firewall is active on this XP computer and does 
>> not allow connections on port 8080 of course..
>>
>>
>>> Thx in advance.
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message