Reputation: 602
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
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
Reputation: 488
On the cloud you could use two different services in order to host your Java application.
Upvotes: 1
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
Reputation: 560
You should host the server in Heroku ,they offer a free hosting with limits , I have an app there
Upvotes: 0
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
Reputation: 26998
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