Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing jsp project from LAN

 
Bgg Singh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have developed a project in netbeans using jsp as server side language.
the project is online exam system.
Now how to call this project from LAN i. e computers on LAN will be like clients(Test users) and my netbeans project is on one of the machines on LAN(should act as server).

any help will be appreciated.
thanks.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just need to deploy your application. I take it you have a server with a Servlet container you are intending to deploy to?
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deploy the application in tomcat, start the server, and you should be able to access it using the IP. eg http://xx.xx.xx.xx:8080/yourapp
 
Bgg Singh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks For replying.

This is what i have tried..
From the start of my code development, i have been using GlassFish server of netbeans to Deploy and test my code on local machine
(localhost)

now when i deploy and call a page from a machine in LAN, i dont get the required output page.
this is how the url request is- http://xx.xx.xx.xx:8080/onlineexam/login.jsp

since i am using GlassFish server it would be great if i can get output using it, else i will try it using tomcat!

I doubt if am making some mistake in the above url path, like .."onlinexam" in the above path is the name of the folder in netbeans where all my code files are saved..so is that the correct path? and is 8080 a standard port to be used for such communication?

Any suggestions would be helpful.
Thanks again.
 
Bgg Singh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem Solved.
Firewall on server was blocking port number 8080[size=12]


I just Disabled the firewall and it worked

Thanks again to guys for replying [/size]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bgg Singh wrote:Firewall on server was blocking port number 8080

I just Disabled the firewall and it worked

WHAT? Your solution to a firewall blocking a particular port is to disable the firewall entirely? What you need to do is to re-enable the firewall, and to configure it so traffic to port 8080 goes through.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic