Vasanth Nag K V Vasanth Nag K V - 1 month ago 15
Java Question

hosting my website on a LAN using tomcat server

I am badly stuck in a doubt that i have tried various ways to get it cleared and coul'nt find a solution and therefore i decided to come back to the good old place where i have never missed out on getting what i want!

I have a simple hello world jsp page that will trigger a java servlet when a button on this page is clicked. I am running it in a tomcat server that i have installed on my laptop. i am using the Eclipse IDE. so when i run my jsp page, it asks if i want to make the server up, and i will say yes and the jsp page comes up in the browser inside eclipse IDE. and i can access the same page through my system's browser (chrome) too using http:/// . (90 is the port that i have configured for this tomcat). but if i hit to the same url pattern as i have told you above on a desktop which is in the same network as my laptop is, nothing comes up and then i thought, i will hit using the IP of my laptop where the server (tomcat) is actually running, still no result.

when i googled a bit, i learnt that IIS server should be running on my windows to achieve what i want. but my doubt is: Is there a difference between IIS server and tomcat server?because tomcat is already running, do i need an IIS server?

Update - Solution
i used the private IP of my laptop and then it works!!! i was using teh public IP of my network till now so was unsuccessful!!

Answer

Solution i used the private IP of my laptop and then it works!!! i was using teh public IP of my network till now so was unsuccessful!!