finding port numbers in a peer to peer architecture

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 17
Reputation: taineechan is an unknown quantity at this point 
Solved Threads: 1
taineechan's Avatar
taineechan taineechan is offline Offline
Newbie Poster

finding port numbers in a peer to peer architecture

 
0
  #1
Jun 17th, 2007
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
try{ be yourself;}
catch(you suck){be someone else;}

//always be yourself:unless you suck
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 759
Reputation: Killer_Typo will become famous soon enough Killer_Typo will become famous soon enough 
Solved Threads: 35
Killer_Typo's Avatar
Killer_Typo Killer_Typo is offline Offline
Master Poster

Re: finding port numbers in a peer to peer architecture

 
0
  #2
Jun 19th, 2007
Originally Posted by taineechan View Post
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.
Dont forget to spread the reputation to those that deserve!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC