File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Hosting Servlet/JSP Application using localhost? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Hosting Servlet/JSP Application using localhost?" Watch "Hosting Servlet/JSP Application using localhost?" New topic

Hosting Servlet/JSP Application using localhost?

Pranit Sonawane
Ranch Hand

Joined: Jul 29, 2011
Posts: 171

Hi all. I have developed a web application and its all up and running! Now its time that I should host it! But its a hospital management system and they dont want it to be hosted on the web. So what can I do like can I host that application by placing a server inside the hospital and hosting that application onto it. By installing required frameworks, JVMs, JDKs etc in to it? or what would you suggest.!!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Being a hospital, they will be very careful about what gets installed on their network. Start by talking to the network admin about what your app needs, and he can tell you what they have, and how best to accommodate that web app. I would be surprised if they let you near their infrastructure, definitely not without close supervision.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

You don't actually want to host the webapp on "localhost". All you really want to do is host it on the intranet instead of the Internet.

The main difference between intranet hosting and Internet hosting is whether or not client outside your local network can communicate with the server.

There are several blocks of private IP addresses available for internal networking use, such as the 10.x.x.x block and the 192.168.x.x block. Typically an intranet will assign addresses in these blocks using a DHCP server, which can be a stand-alone computer or router. Your webapp server would typically live at one of those assigned addresses. For extra security, it should be firewalled to prevent access to it from outside the LAN.

When you are using a dedicated server, it is usually inconvenient for that server's IP address to be randomly set the way that basic DHCP does. And it is also inconvenient for users to have to remember an IP address for URLs. DHCP has a provision for permanently assigning a fixed IP address to a specific machine (based on its MAC address). Use of a Domain Name Server (DNS) that defines a symbolic hostname and pairs it with that address will allow users to use the hostname in request URLs directed to that server.

An IDE is no substitute for an Intelligent Developer.
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

Pranit Sonawane wrote: can I host that application by placing a server inside the hospital

They don't have a server already?

|Asking Good Questions|
I agree. Here's the link:
subject: Hosting Servlet/JSP Application using localhost?
It's not a secret anymore!