I have a simple java chat application (server code + client code) which uses java's socket API to communicate with each other.This application is pure java SE and does not use any servlets or JSPs. Client is a desktop java swing application. I tested my code within localhost, and it works fine.
My question is about deploying this server code on the internet. If I had a personal server (with a static IP ) I could deploy the server code on it and configure it to communicate via the predefined port number in my code. The problem is I don't have one.
Now is there anyway that I could find such a service on the internet to host my code there and to configure it to communicate via my custom port? Or else is there anyway I could tweak my code a little bit, and make it work with an existing service closer to what I am expecting.
EDIT
I have managed to do this via Amazon EC2 virtual servers as pointed out in the answers