Click here to Skip to main content
15,905,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to create TCP connections between two clients in different LAN? Pin
Albert Holguin15-Feb-12 9:43
professionalAlbert Holguin15-Feb-12 9:43 
GeneralRe: How to create TCP connections between two clients in different LAN? Pin
yu-jian15-Feb-12 2:58
yu-jian15-Feb-12 2:58 
GeneralRe: How to create TCP connections between two clients in different LAN? Pin
Jochen Arndt15-Feb-12 3:33
professionalJochen Arndt15-Feb-12 3:33 
AnswerRe: How to create TCP connections between two clients in different LAN? Pin
Erudite_Eric15-Feb-12 0:37
Erudite_Eric15-Feb-12 0:37 
GeneralRe: How to create TCP connections between two clients in different LAN? Pin
yu-jian15-Feb-12 3:02
yu-jian15-Feb-12 3:02 
GeneralRe: How to create TCP connections between two clients in different LAN? Pin
Erudite_Eric15-Feb-12 22:35
Erudite_Eric15-Feb-12 22:35 
AnswerRe: How to create TCP connections between two clients in different LAN? Pin
Richard MacCutchan15-Feb-12 4:00
mveRichard MacCutchan15-Feb-12 4:00 
AnswerRe: How to create TCP connections between two clients in different LAN? Pin
Randor 15-Feb-12 13:26
professional Randor 15-Feb-12 13:26 
yu-jian wrote:
Is there a way to create TCP connection between two clients through server?


I am almost positive that this is the wrong forum for this question. You would probably get some responses from network administrators in the System Admin forum[^]. But since we are in an ocean of wrongness I'll throw you a lifebuoy.

If I understand you correctly... you have something like:

[Network A]   [Network B]
           \ /
       [Dumb switch]
            |
         [Server]


It doesn't matter if my graph is wrong and you actually have multiple Layer 1 network switches/routers on segregated networks. If both networks are able to speak TCP with the server then; Yes you can use the server to route packets between the subnets. You would set the server as the 'Gateway' and setup some static routes[^]. If the server is running Linux... same thing... same route command[^].

Another option if you are able to use UDP rather than TCP would be Multicasting[^]

Also... there are alot of IFs ANDs and BUTTS (butt-heads too) when it comes to network questions. To get a definitive answer it would be better if you drew a network graph. If there are any Layer2/Layer3 devices between your server and sub-nets it complicates the issue; but only slightly.

Best Wishes,
-David Delaune
QuestionSHA1 encoding using Windows Crypto API with Unmanaged C++ Pin
Cyber Friend14-Feb-12 11:54
Cyber Friend14-Feb-12 11:54 
AnswerRe: SHA1 encoding using Windows Crypto API with Unmanaged C++ Pin
pix_programmer14-Feb-12 20:48
pix_programmer14-Feb-12 20:48 
GeneralRe: SHA1 encoding using Windows Crypto API with Unmanaged C++ Pin
Cyber Friend15-Feb-12 12:16
Cyber Friend15-Feb-12 12:16 
AnswerRe: SHA1 encoding using Windows Crypto API with Unmanaged C++ Pin
Randor 15-Feb-12 13:37
professional Randor 15-Feb-12 13:37 
GeneralRe: SHA1 encoding using Windows Crypto API with Unmanaged C++ [Resolved] Pin
Cyber Friend15-Feb-12 13:41
Cyber Friend15-Feb-12 13:41 
Questionfopen increment Pin
manju 314-Feb-12 3:16
manju 314-Feb-12 3:16 
AnswerRe: fopen increment Pin
Maximilien14-Feb-12 4:16
Maximilien14-Feb-12 4:16 
AnswerRe: fopen increment Pin
«_Superman_»14-Feb-12 16:15
professional«_Superman_»14-Feb-12 16:15 
QuestionApplication Crash Pin
pix_programmer14-Feb-12 1:51
pix_programmer14-Feb-12 1:51 
AnswerRe: Application Crash Pin
Chris Losinger14-Feb-12 3:10
professionalChris Losinger14-Feb-12 3:10 
QuestionRe: Application Crash Pin
pix_programmer14-Feb-12 17:45
pix_programmer14-Feb-12 17:45 
QuestionPicture control Pin
sarfaraznawaz13-Feb-12 23:57
sarfaraznawaz13-Feb-12 23:57 
AnswerRe: Picture control Pin
Jochen Arndt14-Feb-12 0:25
professionalJochen Arndt14-Feb-12 0:25 
QuestionRemove warning "unused parameters" Pin
marca29213-Feb-12 21:53
marca29213-Feb-12 21:53 
AnswerRe: Remove warning "unused parameters" Pin
«_Superman_»13-Feb-12 21:56
professional«_Superman_»13-Feb-12 21:56 
GeneralRe: Remove warning "unused parameters" Pin
marca29213-Feb-12 22:00
marca29213-Feb-12 22:00 
QuestionToolbar and status bar disappear during client area update Pin
Lianqing13-Feb-12 13:30
Lianqing13-Feb-12 13:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.