I have previously posted a question asking how I could host a server on a computer without the use of port forwarding, and creating an intermediary server was suggested. Now that I have time to actually work on it, I have another question.

Which should I use to create the server?

I do have a web server, and I could use PHP, although I have never created a "Socket server" in php, so I have no idea how good it would perform compared to something else, but then I wouldn't have to buy a VPS or a Dedicated Server.

Or, I could create the server in JAVA, like the app and the orignal server I created is in, but then I would have to buy some type of Server.

Suggestions?

link|improve this question
@Austin: I read your original question and this doesn't make sense to me. You have written an Android client which connects to the user's computer so they can monitor that computer. Is that right? Now you don't want them to have to worry about configuring their home router to enable access from the Android client - correct? So you're going to setup an intermediary server on behalf of all of your users??? Either I'm misinterpreting something or this is a really strange idea. – MisterSquonk Mar 26 '11 at 3:31
@MisterSquonk Yes that's correct, maybe I misinterpreted the original comment. – Austin Mar 26 '11 at 3:49
@Austin: So you've written software to run on the user's home computer and you want it to upload data to your intermediary server so the user can access that data from their Android phone using your client app??? – MisterSquonk Mar 26 '11 at 3:57
@MisterSquonk What this does is lets users access their computer from their phone, like screenshots of it, logs, things like that. So from what I understand of your question, yes. – Austin Mar 26 '11 at 4:06
1  
I'm not sure why a question on programming language choices was migrated from stack overflow to server fault, but on any of the sites this isn't really something we can answer for you. You might as well ask us if the server should be Dell or HP, or which colour you should paint the room its going in, or whether you should wear jeans or chinos while coding on it. In all those cases the answer is "It's your personal choice, we can't tell you what to do" – DJ Pon3 Mar 26 '11 at 12:23
show 5 more comments
feedback

migrated from stackoverflow.com Mar 26 '11 at 10:51

This question came from our site for professional and enthusiast programmers.

closed as off topic by John Gardeniers, Ben Pilbrow, DJ Pon3, Iain, jscott Mar 26 '11 at 13:36

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

1 Answer

Maybe I'm jumping in on this a little late, but, I think what you are looking for is to setup a proxy/reverse proxy.

There are a few good ways to do it depending on what you need and the OS you are running.

Squid comes to mind. So does mod_proxy and apache httpd.

http://www.visolve.com/squid/whitepapers/reverseproxy.php

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.