Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C# VB.NET Server TCP/IP
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 19-Jun-12 7:57am
Edited 23-Jun-12 22:35pm
v3
Comments
Wes Aday at 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 at 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 at 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 at 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 at 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
good
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.
 

...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.
  Permalink  
Comments
Vitaly Tomilov at 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 at 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
0 BillWoodruff 314
1 Sergey Alexandrovich Kryukov 290
2 George Jonsson 274
3 CPallini 255
4 OriginalGriff 237
0 OriginalGriff 4,895
1 CPallini 4,010
2 Sergey Alexandrovich Kryukov 3,514
3 George Jonsson 2,826
4 Gihan Liyanage 2,386


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 24 Jun 2012
Copyright © CodeProject, 1999-2014
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