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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -