Mark Reds

Preserving the past, building the future on markreds.it

Come testare se una porta TCP remota è aperta

Scritto da

in

—

Per testate lo stato di una porta remota possiamo utilizzare il comando da shell:

$ nc -z <host> <port>

In questo modo il comando nc verificherà, senza inviare alcun dato, se la porta è aperta o chiusa, ritornando rispettivamente 0 o 1.