server-side programming
<p>I'm looking to program something for an Android machine. 
Basically I want the phone to communicate with a server, sending it TCP/UDP packets, and I want the server to reply to the phone an answer depending on the packet received. </p>

<p>I did it while ago, with 2 PC's it wasn't really a problem. I had my "server side" running on a loop listening to a certain port and then replying. </p>

<p>My question is how should I write this code if I don't want to have a PC running as a server? 
Any recommendations on a good free-host-server on the web, and what kind of language I should use..?</p>

<p>As you can see I'm a bit lost, and need some tips/guides or anything that will help me get started.</p>

<p>Thanks a lot</p>
