How do I connect to a p2p node from another client?
-
Monday, March 26, 2012 3:07 PM
Hello,
I currently am running a WCF service/client app over the internet. When a client connects it registers its callback context on the server and the server can interact with other clients through their callback channels. On top of this, the service has an implementation of a CustomPeerResolverService and each client now has a netpeertcpbinding for the mesh and each client is aware of the mesh. I love how this works as the peers can 'talk' without having to open up ports on the firewall. What i would really like to accomplish is a direct connection between two peers. My attempts at using pnrp and system.net.peertopeer have failed but is it possible to leverage the p2p binding registered with the custompeerresolverservice and dynamically create the channels required for one on one communication over the internet.
Thanks in Advance,
Christopher Leach- Edited by Meffy.NET Monday, March 26, 2012 3:22 PM
All Replies
-
Monday, April 16, 2012 5:08 AM
Hi,
I think you are having the same question as below post. so would you please reference to below post:
"Wcf over the Internet"
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/86869e8d-d5a7-4ce7-813d-47e2ce448850/
Also, I'd like to share you some artices related to this topic which may help you better understand P2P programming model:
1) Peer-to-Peer Programming with WCF and .NET Framework 3.5
http://msdn.microsoft.com/en-us/library/cc297274.aspx
2) How can I distribute a WCF Peer to Peer application over the Internet?
http://stackoverflow.com/questions/152238/how-can-i-distribute-a-wcf-peer-to-peer-application-over-the-internet

