Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
2.00/5 (4 votes)
Hello,

I want a server with a fixed ip address(which I will run on my home pc). A remote [http server acting as a] client will connect to this server. A second remote[or local] client[web browser] will connect to the server. The server will establish a communication between the two clients. The server will relay all communication, including the raw tcp packets. Does anybody know of a program or server that can do this? [After doing some research on google, I think NodeJS may be the best option for this.]

Thanks,

-ren
Posted
Updated 23-Jun-12 22:35pm
v3
Comments
[no name] 19-Jun-12 14:22pm    
There are any number of clients and servers out there that will do this. What is that you need help with? Writing you own server? Writing a client? How to use google?
SoMad 20-Jun-12 16:07pm    
I wish OP would elaborate. If he needs to develop this himself it could be a good question with excellent answers to come, but he probably needs to decide on the programming language (currently tagged as C++, C#, VB.NET)...

Soren Madsen
Member 2542530 19-Jun-12 20:28pm    
Wes,

I have not found one yet. The server will allow the two clients to talk with one another. If you know of one, could you give the link?

Thanks,

-ren
michaelmel 19-Jun-12 23:58pm    
I had to write exactly what you are after (extended version where multiple clients can be connected and one client's data can be sent to 1 or more other clients). Unfortunately it is embedded in a proprietary application and I do not own the source code so cannot post it. I am pretty sure you will not find anything off-the-shelf to do this. If you end up writing it yourself, let me know I can give you some tips on design. Pure 1:1 data relay is actually very simple.
Code-o-mat 20-Jun-12 8:25am    
Not sure if this helps you or not, but e.g. the IRC (Internet Relay Chat) protocol does exactly that, you can probably find open-source IRC servers around the net, you could try finding a lightweight one and examine it.

1 solution

The answer to your question would depend very much on how you intend to use such client/server architecture:

a. Simple binary/byte exchange?
b. File exchange?
c. Need to exchange HTML?
d. Need SOAP?
e. Need any security?


There are many existing solutions in place, from simple to overcomplicated:
from your own custom UDP or TCP exchange, to your standard Windows Server ones, as example.


...as well as from free ones to uber-expensive ones:
like, from IRC, to BizTalk.

Without a certain task at hand you cannot pick the right one. To get a more specific answer, publish a more specific question.
 
Share this answer
 
Comments
Vitaly Tomilov 24-Jun-12 5:02am    
He asked "Does anybody know of a program or server". And I gave a few. What's the problem?
Shahin Khorshidnia 24-Jun-12 5:29am    
Ok, sorry!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900