Link to home
Create AccountLog in
Avatar of JiriNovotny
JiriNovotny

asked on

Tunneling through private networks

Hello,

I've two computers, each of them runs in another private network, so both PC's have private IP address. I need to connect these two computers. You can use third PC with public IP to initiate the connection, but not for the data transfer. How can I connect these two computers with private IP address? Please include links to tutorials how to do that in C++/C# as well.

Thank you very much.
Avatar of Daniel Junges
Daniel Junges
Flag of Brazil image

to conect to another private ip, then you  have to forward the vpn port on you gateway to this ip.

implementation sample: http://social.msdn.microsoft.com/forums/en-US/netfxnetcom/thread/28125f40-9c3b-4e77-9bfb-8a975e9b3457/
Avatar of JiriNovotny
JiriNovotny

ASKER

Well and how is this done in Hamachi/Skype? Or VPN? I heard that Skype is able to tunnel two private networks without using relay server.
This is another stuff:

Tunneling skype from behind firewall
http://www.rico-wind.dk/
Well I don't need to know how to tunnel skype through firewall, I just said I heard that Skype is able to tunnet two private networks without using relay server, and I would like to know how it's done. And I heard that Hamachi is able to do the same, so also Hamachi should be able to tunnel two private networks without using any relay server.

So the ultimate question is: How to tunnel two applications running in different private networks without using any relay server?
SOLUTION
Avatar of Daniel Junges
Daniel Junges
Flag of Brazil image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Well the solution is acceptable if third server is used for session establishment ONLY. Thus, the actual data must go directly from client to client, not through third server, as this would really overload that server. Hope the solution exists, because I must not overload the server.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.