✓ Znaleziono rozwiązanie!
2013-01-08 11:51:03 +0000
netstat -lntu
as replied by @askmish will give you list of services running on your system on tcp and udp ports where
-l = only services which are listening on some port
-n = show port number, don’t try to resolve the service name
-t = porty tcp
-u = porty udp
-p = nazwa programu
You don’t need the ‘p’ parameter as you’re only interested in getting which ports are free and not which program is running on it.
To tylko pokazuje, które porty w twoim systemie są zużyte. Nie mówi ci to o stanie twojej sieci, np. jeśli jesteś za NAT-em i chcesz aby niektóre usługi były dostępne z zewnątrz. Albo jeśli firewall blokuje port dla gości z zewnątrz. W takim przypadku na ratunek przychodzi nmap. OSTRZEŻENIE: Mapy nmap należy używać tylko w sieciach, które są pod Twoją kontrolą. Istnieją również reguły firewall'a, które mogą blokować ping'y nmap, będziesz musiał manipulować opcjami, aby uzyskać poprawne wyniki.
mehulved
http://superuser.stackexchange.com/users/191623