netcat nc

root@4c83d500b893:/# netcat  -l -p 6000
GET / HTTP/1.1
User-Agent: Wget/1.19.4 (linux-gnu)
Accept: */*
Accept-Encoding: identity
Host: 172.17.0.4:6000
Connection: Keep-Alive

root@4c83d500b893:/# netcat  -l -p 6000


hello
root@PORT:~# telnet 172.17.0.4  6000
Trying 172.17.0.4...
Connected to 172.17.0.4.
Escape character is '^]'.


hello
原文地址:https://www.cnblogs.com/dream397/p/14119137.html