Код: Выделить всё
nc -lp 12345и 3 -й терминал Я запускаю эту команду, чтобы подключиться к серверам NetCat
Код: Выделить всё
nc localhost 12345В 3 -м терминале после того, как я запустил команду, я набрал там несколько случайных строк и наблюдал за двумя другими терминалами. Только терминал, который запускает сервер NetCat, сначала получит текст, который я набрал, другой только что будет висеть там и ничего не выведет. "Bind in a "weird" passive state but not actually receive traffic (depends on implementation)" to the 2nd netcat servers, which is quite of vague
I also used the this command to print out networking data in my machine and both servers actually occupy the port 12345 for 0.0.0.0
Код: Выделить всё
$ netstat -tuldp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:12345 0.0.0.0:* LISTEN 58958/nc
tcp 0 0 0.0.0.0:12345 0.0.0.0:* LISTEN 58941/nc
Подробнее здесь: https://stackoverflow.com/questions/797 ... here-are-2
Мобильная версия