Click here to Skip to main content
11,930,222 members (42,705 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++ C# VB VB.NET Server TCP/IP

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.]


Posted 19-Jun-12 8:57am
Edited 23-Jun-12 23:35pm
Wes Aday 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

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?


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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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. 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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 24 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100