Code: Select all
basnas:~# nc -v 192.168.1.2 8080
nc: connect to 192.168.1.2 port 8080 (tcp) failed: Connection refused
basnas:~# nc -v localhost 8080
nc: connect to localhost port 8080 (tcp) failed: Connection refused
nc: connect to localhost port 8080 (tcp) failed: Connection refused
Connection to localhost 8080 port [tcp/*] succeeded!
basnas:~# nc -v localhost 4444
nc: connect to localhost port 4444 (tcp) failed: Connection refused
nc: connect to localhost port 4444 (tcp) failed: Connection refused
nc: connect to localhost port 4444 (tcp) failed: Connection refused