How to create socket connection with php?

How to Threading a socket connection to all TCP ports?

  • Hi, When you create a socket connection to scan all (65535) TCP ports to ensure if they are open or not, the connection to all ports is really time consuming (at least taking hours to complete, if even it may stop). I was thinking threading some of the socket connections in groups (dividing 65535 into a separate groups) to increase the speed of scanning all ports. How can I get around doing this? Thanks

  • Answer:

    Are you trying to scan a destination (a target pc, for example) or a path (to see if your pc can reach the Internet without being blocked by a firewall)? If a path, then try http://www.firebind.com It can scan all 65535 UDP and TCP ports between your machine and the Internet to determine if a given port is open or blocked.

Douglas at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.