sockets - How do online port checkers work? -


for example http://www.utorrent.com/testport?port=12345

how work? can server side script attempt open socket?

there many ways of accomplishing through server-side scripting. @oded mentioned, server-side handlers capable of initiating socket connections on arbitrary ports, , of have dedicated port-scanning packages/libraries (php has one in pear repository, python's 'socket' module makes type of tasks breeze, etc...)

keep in mind on shared host platforms, socket connections typically disabled security purposes.

another way easy accomplish use command-line port-scanner such nmap server-side script. i.e in php, echo ``nmap -p $port $ip\


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -