Solved

Socket Communication behind  LAN

Posted on 2003-10-22
7
235 Views
Last Modified: 2010-04-17
Hello,

 I want my P2P application to works well even when users are behind proxy or LAN.

i.e Two instance of my application should be able to communicate even if they are on different LANs but indirrectly connected to internet.

To elaborate it further, suppose there is a computer on my office LAN running my application. This computer is connected to internet through our Proxy server. Now any other computer which is also on LAN and is  indirectly connected to internet should be able to exchange files. We want to achieve this without installing anything on Proxy server.

I have seen software  KAZAA, which allows different users to exchange files even behind proxies,firewalls. We just need to open a Port on Proxy Server.

How can i achieve this functionality in C#?

Waiting for your valuable reply,
Yassar
 
0
Comment
Question by:Yassar
  • 2
7 Comments
 
LVL 4

Accepted Solution

by:
1mak earned 250 total points
ID: 9597330
I think you'll need to have an intermediary server accessible from both proxied machines? I'm sure this is how Kazaa does it?
0
 
LVL 9

Assisted Solution

by:bhagyesht
bhagyesht earned 250 total points
ID: 9597390
make it work on peer to peer basis for intra net for internet -intranet make it client-server or u need a component to be installed on the proxy too which tranlsaltes then ip for your program like a proxy does
0
 
LVL 1

Expert Comment

by:crane-
ID: 9597517
you can't establish a connection between two computers if they both have private addresses in different lans.

don't know details about kazaa, but other similar networks use a kind of adaptive connections, meaning that they use the most direct route in each transfer. what this means in practice is that they use a third party when direct connection can't be made. this is all invisible to the user, so it may seem like they are talking directly to each other.
0
 
LVL 9

Expert Comment

by:bhagyesht
ID: 10321817
Split points between bhagyesht and 1mak
Bhagyesh Trivedi
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A short article about problems I had with the new location API and permissions in Marshmallow
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question