Is it possible to check if a connection is listening on a certain port?

This is a discussion on Is it possible to check if a connection is listening on a certain port? within the Windows Programming forums, part of the Platform Specific Boards category; Is it possible to check if a connection is listening on a certain port before you try to connect() to ...

  1. #1
    Golboy
    Guest

    Is it possible to check if a connection is listening on a certain port?

    Is it possible to check if a connection is listening on a certain port before you try to connect() to it?

  2. #2
    Registered User codingmaster's Avatar
    Join Date
    Sep 2002
    Posts
    309
    Yes, when you are pinging yourself. Then you are not really connecting. But you can check the ports with a prog on your computer.

    But, when you wanna check some other computers for open ports, then you have to ping them.

    Are you going to write a portscanner??????

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. serial port to poll on request
    By infineonintern in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 06:52 AM
  2. Not working in linux...
    By mramazing in forum C++ Programming
    Replies: 6
    Last Post: 01-08-2009, 01:18 AM
  3. Concurrent chat, Sockets
    By jakemott in forum Linux Programming
    Replies: 6
    Last Post: 11-29-2008, 04:41 PM
  4. Reading and writing to a serial port
    By SwarfEye in forum C Programming
    Replies: 2
    Last Post: 08-18-2006, 12:28 AM
  5. How do I check if the connection is still alive?
    By jaro in forum C Programming
    Replies: 2
    Last Post: 03-30-2006, 01:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21