Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: Confused About Ports |
howiegoo From: Marianna, FL USA Posts: 15 Member Since: 01/09/04 |
posted June 23, 2004 2:30 PM Using the server example in the help files I set up a simple server that listens for connections on port 7. The client then tries to connect to the server using Tcp1.Connect("xxx.xxx.xxx.xxx", "7") When a connection is made I display the connection's RemoteEndPoint and it gives me the correct IP address (of the client) but the port number isn't 7. Also, when I repeatedly connect and disconnect the client from the server the port number the server displays seems to increment upwards. I'm totally confused. Where is it getting this other port? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 23, 2004 2:49 PM That's the way a server works. It listens on a port. When someone connects, a new port is created (we request it from the TCP-IP stack), the connection is then "handed over" to the new port and the server goes back to listening. |
howiegoo From: Marianna, FL USA Posts: 15 Member Since: 01/09/04 |
posted June 23, 2004 2:50 PM Ah! Ok. So there is no worries about the connection being handed off to a port that is already in use or reserved? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 23, 2004 2:52 PM That's correct. |
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
![]() |