aspose file tools
The moose likes JSP and the fly likes accessing jsp project from LAN Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "accessing jsp project from LAN" Watch "accessing jsp project from LAN" New topic

accessing jsp project from LAN

Bgg Singh

Joined: Mar 14, 2011
Posts: 4
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.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

You just need to deploy your application. I take it you have a server with a Servlet container you are intending to deploy to?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212

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

[Servlet tutorial] [Servlet 3.0 Cook Book]
Bgg Singh

Joined: Mar 14, 2011
Posts: 4
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

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

Joined: Mar 14, 2011
Posts: 4
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

Joined: Mar 22, 2005
Posts: 42956
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.
I agree. Here's the link:
subject: accessing jsp project from LAN