954,546 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

finding port numbers in a peer to peer architecture

I'm writing a peer to peer network in c# with .net 3.
I'm using a tcp/ip architecture where each device acts as both a client and a server.
If one pc wants to download a file from another, how will it know what port the server on the other pc is listening on?
Because they both need to connect to the same port for a connection to be made

taineechan
Newbie Poster
17 posts since Oct 2006
Reputation Points: 10
Solved Threads: 1
 
I'm writing a peer to peer network in c# with .net 3. I'm using a tcp/ip architecture where each device acts as both a client and a server. If one pc wants to download a file from another, how will it know what port the server on the other pc is listening on? Because they both need to connect to the same port for a connection to be made



for this you should really understand the OSI model and how router works.

i would give you more but there is only so much i can say.

Killer_Typo
Master Poster
781 posts since Apr 2004
Reputation Points: 152
Solved Threads: 39
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You