You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by deathgod86 <de...@yahoo.co.uk> on 2008/11/18 13:19:30 UTC

How to access JSP and Servlet remotely ?

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.

*Please be note that, the computer installed tomcat is not a server, is just
a normal pc.

Thx in advance.
-- 
View this message in context: http://www.nabble.com/How-to-access-JSP-and-Servlet-remotely---tp20558511p20558511.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: How to access JSP and Servlet remotely ?

Posted by Mark Thomas <ma...@apache.org>.
On 23/11/2010 06:56, surya.prakash wrote:
> 
> even im facing same problem..... i need to run jsp file from another system.

With a question phrased like that, you aren't going to get much help
here. Try reading this:
http://www.catb.org/~esr/faqs/smart-questions.html

and then re-phrase your question.

Mark


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


Re: How to access JSP and Servlet remotely ?

Posted by "surya.prakash" <su...@gmail.com>.
even im facing same problem..... i need to run jsp file from another system.

-- 
View this message in context: http://old.nabble.com/How-to-access-JSP-and-Servlet-remotely---tp20558511p30283777.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: How to access JSP and Servlet remotely ?

Posted by deathgod86 <de...@yahoo.co.uk>.
Thanks a lot for your help.
I really appreciate.

Finally I am able to access it remotely. :jumping:

Really thanks a lot for your time to help me solving this problem.




David Smith-2 wrote:
> 
> Ok... then I misread your post.  Sorry about that.
> 
> Describe failed.  Do you get a 404 page not found, a 500 server error,
> some pretty browser message about not finding the server?
> 
> Windows XP SP2 and SP3 have the firewall enabled by default.  If the
> server is one of those OS's, you'll have to add an exception for port
> 8080 to allow client computers access.
> 
> --David
> 
> 
> deathgod86 wrote:
>> Thx for your reply.
>>
>> But sorry that your option has get rid of the client-server concept.
>> If follow your option, then there is no point on accessing remotely.
>>
>>
>>
>> David Smith-2 wrote:
>>   
>>> Two options:
>>>
>>> 1. Install tomcat on the remote computer
>>> 2. Setup filesharing on the remote computer and make sure the user
>>> tomcat runs as on the local system has privileges to access the share.
>>>
>>> --David
>>>
>>> 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.
>>>>
>>>> *Please be note that, the computer installed tomcat is not a server, is
>>>> just
>>>> a normal pc.
>>>>
>>>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-access-JSP-and-Servlet-remotely---tp20558511p20563758.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: How to access JSP and Servlet remotely ?

Posted by David Smith <dn...@cornell.edu>.
Ok... then I misread your post.  Sorry about that.

Describe failed.  Do you get a 404 page not found, a 500 server error,
some pretty browser message about not finding the server?

Windows XP SP2 and SP3 have the firewall enabled by default.  If the
server is one of those OS's, you'll have to add an exception for port
8080 to allow client computers access.

--David


deathgod86 wrote:
> Thx for your reply.
>
> But sorry that your option has get rid of the client-server concept.
> If follow your option, then there is no point on accessing remotely.
>
>
>
> David Smith-2 wrote:
>   
>> Two options:
>>
>> 1. Install tomcat on the remote computer
>> 2. Setup filesharing on the remote computer and make sure the user
>> tomcat runs as on the local system has privileges to access the share.
>>
>> --David
>>
>> 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.
>>>
>>> *Please be note that, the computer installed tomcat is not a server, is
>>> just
>>> a normal pc.
>>>
>>> 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


Re: How to access JSP and Servlet remotely ?

Posted by deathgod86 <de...@yahoo.co.uk>.
Thx for your reply.

But sorry that your option has get rid of the client-server concept.
If follow your option, then there is no point on accessing remotely.



David Smith-2 wrote:
> 
> Two options:
> 
> 1. Install tomcat on the remote computer
> 2. Setup filesharing on the remote computer and make sure the user
> tomcat runs as on the local system has privileges to access the share.
> 
> --David
> 
> 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.
>>
>> *Please be note that, the computer installed tomcat is not a server, is
>> just
>> a normal pc.
>>
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-access-JSP-and-Servlet-remotely---tp20558511p20561060.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: How to access JSP and Servlet remotely ?

Posted by David Smith <dn...@cornell.edu>.
Two options:

1. Install tomcat on the remote computer
2. Setup filesharing on the remote computer and make sure the user
tomcat runs as on the local system has privileges to access the share.

--David

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.
>
> *Please be note that, the computer installed tomcat is not a server, is just
> a normal pc.
>
> 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


Re: How to access JSP and Servlet remotely ?

Posted by deathgod86 <de...@yahoo.co.uk>.
Thanks a lot for your help.
I really really appreciate your details instruction in the help.

Finally I can access it remotely. :jumping:

You are really a great problem solver.
Giving a very good directive instruction.

I already configure in my personal firewall.
I never noticed that is the windows firewall making me trouble.
Because in my personal firewall setting is configured to ignored windows
firewall setting.

Really Thanks a lot.



awarnier wrote:
> 
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-access-JSP-and-Servlet-remotely---tp20558511p20563745.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: How to access JSP and Servlet remotely ?

Posted by André Warnier <aw...@ice-sa.com>.
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


Re: How to access JSP and Servlet remotely ?

Posted by deathgod86 <de...@yahoo.co.uk>.
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 ?

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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-access-JSP-and-Servlet-remotely---tp20558511p20560894.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Re: How to access JSP and Servlet remotely ?

Posted by André Warnier <aw...@ice-sa.com>.
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