This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes General Computing and the fly likes I'd like to host an application (Java)... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "I Watch "I New topic
Author

I'd like to host an application (Java)...

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
I'd like to host an application on web which runs on tomcat - precisely it's a web application (uses JSP & servlet).
It's an experiment so don't want to spend much, preferably a free option would be just great…

I looked for java hosting options & here is my conclusion:

Only free package I found is from eatJ but they stop the server in every 6 hours - which is not acceptable - so let's discard this.

They also have a basic package for 9$ or so per month - which I am considering.

The other option I can look for is, obtain a static IP & host my website from my home - I know it'll be not as simple as I said but I'll figure out later how do I do it. Now obtaining a static IP will cost me, I guess, 40$ or so per month – but data will be on my system & seems more secure option.

The 3rd option I have is using services like no-ip etc & host my site from home with dynamic IP. This will cost me less for internet connection, something about 20$ per month.

If I go with last two options, I'll have to purchase a system (server) - but I am anyway considering buying a laptop. Will it be okay to run a server from a basic laptop? By basic I mean which costs 800$ or so.

What do you guys suggest? Which option I shall go with? Or any other option do you suggest?
Any normal internet connection is okay for running server? By normal I mean, whatever we usually get from ISPs, I don't know the exact speed my ISP provides - but you can guess it by the price I mentioned above.

Thanks for reading through.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
If you're considering spending USD 20 per month, you might as well go for real hosting; several of the companies listed in http://faq.javaranch.com/java/ServletsFaq#hosting offer decent plans for less than that (for example, the "Basic" plan at WebAppCabaret is USD 15 per month).

data will be on my system & seems more secure option.

With all due respect to your admin capabilities, I doubt that you can run a server more securely than admins at a professional hosting company that do it for a living.


Ping & DNS - my free Android networking tools app
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Thanks Ulf for quick response.

Actually there are some more parameters/points to be considered/discussed here which I missed in my first post:

1. If I host it from home then I get kind of unlimited space (disk & database both).
2. I anyway pay about 20 USD for my internet so I'll utilize the same connection, so in a way, hosting is free.
3. If I use no-ip etc services then I don't get "my own" domain name, it would be like ankurrathi.no-ip.org, which is okay for me.

I accept that security is not a concern.

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
Some issues of hosting at home that you might want to consider:
  • it's only available if the machine is running and you're connected to the net (so it's a question of what uptime the users would expect)
  • it's not entirely free, since you'd be paying for electricity and tear on the machine (assuming that it wouldn't be running all the time anyway)
  • you'll have to open up your firewall for outside connections (HTTP attacks are quite common, so you'd have to harden your machine beyond what's normal for a desktop.)

  • The last item alone would be enough to make me shy away from it. Proper hosting isn't expensive, and has other advantages as well (like being able to use it for your email).
    Joe Ess
    Bartender

    Joined: Oct 29, 2001
    Posts: 8836
        
        7

    I doubt that you can run a server more securely than admins at a professional hosting company that do it for a living.

    I came to a different conclusion. I run a home server because I wanted to learn how to run a server securely. I built a dedicated "home server" (some details in this topic) that runs my web site, serves media files, runs torrents and provides SSH access when I'm out of the house (among other projects). I have a static IP address on my DSL line and it provides enough upload throughput (128kbps, I believe) and bought a domain name to map to it. It gives me a lot of flexibility for what I consider a reasonable price.


    "blabbing like a narcissistic fool with a superiority complex" ~ N.A.
    [How To Ask Questions On JavaRanch]
    ankur rathi
    Ranch Hand

    Joined: Oct 11, 2004
    Posts: 3830
    Ulf Dittmer wrote:Some issues of hosting at home that you might want to consider:
  • it's only available if the machine is running and you're connected to the net (so it's a question of what uptime the users would expect)
  • it's not entirely free, since you'd be paying for electricity and tear on the machine (assuming that it wouldn't be running all the time anyway)
  • you'll have to open up your firewall for outside connections (HTTP attacks are quite common, so you'd have to harden your machine beyond what's normal for a desktop.)

  • The last item alone would be enough to make me shy away from it. Proper hosting isn't expensive, and has other advantages as well (like being able to use it for your email).


    Thanks Ulf.

    For # one, I guess, instead of laptop, I'd opt to buy a desktop which I can run all the time and use as a server.
    # 2, I think it shouldn't be much.
    # 3, A Joe said, I'll learn some stuff in this process.

    Another thing is, I'll be able to run multiple sites from single server, if the case be.
    ankur rathi
    Ranch Hand

    Joined: Oct 11, 2004
    Posts: 3830
    Joe Ess wrote:
    I doubt that you can run a server more securely than admins at a professional hosting company that do it for a living.

    I came to a different conclusion. I run a home server because I wanted to learn how to run a server securely. I built a dedicated "home server" (some details in this topic) that runs my web site, serves media files, runs torrents and provides SSH access when I'm out of the house (among other projects). I have a static IP address on my DSL line and it provides enough upload throughput (128kbps, I believe) and bought a domain name to map to it. It gives me a lot of flexibility for what I consider a reasonable price.


    Thanks Joe. I like the idea of learning.
    Deploying on others' server is going to be quite easy.

    So after you get the static IP, the only charges you pay are:
    1. Domain name fees (about 10 $ per year).
    2. Internet charges.

    Am I correct?

    Joe Ess
    Bartender

    Joined: Oct 29, 2001
    Posts: 8836
        
        7

    ankur rathi wrote:
    So after you get the static IP, the only charges you pay are:
    1. Domain name fees (about 10 $ per year).
    2. Internet charges.


    Yes on #1.
    I'm not sure what you mean by "internet charges"? Do you pay for bandwidth? My ISP charges a flat fee per month.
    As for the electricity charge, keep in mind that my computer was going to be on anyway, since it's my home media server and it is purpose-built to use as little electricity as possible.
    ankur rathi
    Ranch Hand

    Joined: Oct 11, 2004
    Posts: 3830
    Joe Ess wrote:
    ankur rathi wrote:
    So after you get the static IP, the only charges you pay are:
    1. Domain name fees (about 10 $ per year).
    2. Internet charges.


    Yes on #1.
    I'm not sure what you mean by "internet charges"? Do you pay for bandwidth? My ISP charges a flat fee per month.
    As for the electricity charge, keep in mind that my computer was going to be on anyway, since it's my home media server and it is purpose-built to use as little electricity as possible.


    No. I also have a fixed plan.
    However its speed is reduced when I exhaust the download limit.

    I'll switch to a better plan when I am ready with my application.

    Thanks.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: I'd like to host an application (Java)...
     
    Similar Threads
    Own website
    Do you know any free JEE Webhosting Service?
    Linux home server setup
    Tomcat hosting on my local system over internet
    How to connect to samba server from window xp ?