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

  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, 02:18 AM
  3. Concurrent chat, Sockets
    By jakemott in forum Linux Programming
    Replies: 6
    Last Post: 11-29-2008, 05: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, 02:10 AM