File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes how to connect to my web application from another computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to connect to my web application from another computer" Watch "how to connect to my web application from another computer" New topic
Author

how to connect to my web application from another computer

Anil Deshpande
Ranch Hand

Joined: Jan 13, 2008
Posts: 119
Hi,

I have developed a web application on my compter (lets call it c1). I have installed apache tomcat 5. Application is working perfectly fine within my computer(c1).

When I write the url http://localhost:8080/myapplication i get the index.jsp without any problem.

Now I have another computer(lets call it c2) in my home. I have connected my both computers through lan(c1 and c2).


Now I want to access my application running in c1 through c2.

How to do that?


Anil Deshpande
SCJP 1.5, SCWCD 1.5
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Replace "localhost" with the IP address of server.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ravi Sree
Ranch Hand

Joined: Jan 24, 2010
Posts: 62

Sagar Rohankar wrote:Replace "localhost" with the IP address of server.


Hi there,

I am connected to a LAN environment which connects about 100-150 systems.
I have setup apache-tomcat-4.1.37 in my Win XP system.
However i checked if any one could get access my server, but found it not working.
I tried with the same solution you said with IP address:<port number>, but still not working..
However when i start my 'Wamp server' it is accessible over LAN...
Can you please explain what I could be missing....

Also i have also installed the IIS component in my system..

Any help is very deeply appreciated.

Thanks in advance.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Do you have a firewall running on the machine hosting Tomcat?
If so, did you open port 8080?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Lucky, it looks like you're running too many servers on one machine IIS, WAMP, Tomcat.
As Ben said, find out the port the on which Tomcat is running, most of the time its 8080 port.
Ravi Sree
Ranch Hand

Joined: Jan 24, 2010
Posts: 62

Ben Souther wrote:Do you have a firewall running on the machine hosting Tomcat?
If so, did you open port 8080?


Thanks for replying......
No, there is no firewall as such...
Still its getting the same problem.....
Ravi Sree
Ranch Hand

Joined: Jan 24, 2010
Posts: 62

Sagar Rohankar wrote:Lucky, it looks like you're running too many servers on one machine IIS, WAMP, Tomcat.
As Ben said, find out the port the on which Tomcat is running, most of the time its 8080 port.


Thanks for replying......
I changed the port number which was 8080 to 8786.....
As it said there was some process using the port...
And i made sure that when tomcat was running the Wamp server was not...
Do you think this could because of the LAN provider...

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Lucky Sree wrote:
Sagar Rohankar wrote:Lucky, it looks like you're running too many servers on one machine IIS, WAMP, Tomcat.
As Ben said, find out the port the on which Tomcat is running, most of the time its 8080 port.
Do you think this could because of the LAN provider...

Couldn't comment anything on that.
Better you Start the server and use netstat -a command to find out whether the PORT 8786 is occupied by tomcat process, if yes, the open a browser hit, http://<your_ip>:8786/your_app and find out the any thing get printed on Tomcat console or not?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9329
    
110

Shagun Bhardwaj,
Your post was moved to a new topic.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to connect to my web application from another computer
 
Similar Threads
Garbage collection doubt
No output classes
Collection
Bug test chapter 3, question 1?
How to call program arguments of different class through java code