Dead_Jester
Dead_Jester

Reputation: 602

How to put Java program online?

I am learning Java and am trying to do some experiments with networking Java programs.

I have a program made in 2 parts with a client and a server and it works in local testing but the program actually has usefulness for me and a friend of mine and I want to put the server online so both of us can connect to it and use it.

Where/How can I put the program online and have it running so that the client programs can connect to the ServerSocket with an ip address? (Preferably free)

Upvotes: 4

Views: 15739

Answers (6)

HRgiger
HRgiger

Reputation: 2790

If you dont want to pay server hosting then I would open a virtual server on my computer. Play around with modem and forward related port to server IP address. I would use a port higher than 40,000. Then just send your IP and port to your friend or update application.

Upvotes: 5

Captain Haddock
Captain Haddock

Reputation: 488

On the cloud you could use two different services in order to host your Java application.

  1. IaaS (Infrastructure as a Service). Where you can just rent a specific infrastructure on the cloud and you could install and configure all the services that you need.
  2. PaaS (Platform as a Service). In this case, you still enjoy the infrastructure on the cloud + the service Aaren full pre-configured. It means that you can deploy your application without installing or configuring anything. You just need to deploy your application. You have an example about how it works here. Also, you usually can test your Java apps on the cloud without paying.

Upvotes: 1

surya
surya

Reputation: 109

If you really want the application to go live within 5 mins, try Jelastic. If you have built a WAR file, simply sign up with their server,choose a provider closest to your geo location, configure Tomcat and you can upload the WAR file through their fantastic web console. Otherwise if you have some source control system(SVN,GIT etc), you just connect and build it with their Maven console and you can be ready. I used it for my start up(Cloudlabz) and really found it exciting.

Surya

Upvotes: 4

Walllzzz
Walllzzz

Reputation: 560

You should host the server in Heroku ,they offer a free hosting with limits , I have an app there

Upvotes: 0

sbrattla
sbrattla

Reputation: 5386

You could also consider the cheapest Rackspace Cloud Server. You'll get a full fledged Linux server (distribution of your choice) for about USD 11/month. I've done that now and then myself to try things out.

Just install Java on it and you're good to go.

http://www.rackspace.com/cloud/cloud_hosting_products/servers/pricing/

Upvotes: 2

Kit Ho
Kit Ho

Reputation: 26998

http://ideone.com/

is that what you want for this?

This is a free web app for you to run your program online....so you can just paste your code and run it.

Upvotes: 1

Related Questions