Results 1 to 2 of 2

Thread: Winsock port

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    karachi
    Posts
    10
    While making a connection using winsock we must enter the port number. How can I Know the port number of the remote computer if its just an ordinary computer.
    maryam

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Location
    O!
    Posts
    1,177
    Every IP address has 64K port numbers available. Some of these are set aside for specific programs like Ping, FTP, etc.

    You can't just connect to any port. You must use the port that the program on the other side is listening to. If you are developing a special application and the server is listening for connect requests on port 5230 and you try to connect on port 6004, the server will never see the connect request.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width