• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

how to connect to my web application from another computer

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Replace "localhost" with the IP address of server.
 
Ranch Hand
Posts: 64
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have a firewall running on the machine hosting Tomcat?
If so, did you open port 8080?

 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 64
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 64
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shagun Bhardwaj,
Your post was moved to a new topic.
 
Oh the stink of it! Smell my tiny ad!
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic