簡單的聊天功能
Host_A(192.168.18.128)
# iptables -A INPUT -p tcp -m tcp --dport 65534 -j ACCEPT
# nc -l 65534 // 開啟本地通訊埠 65534,參數 -l:listening
i
love
you
Host_B(192.168.18.131)
# nc 192.168.18.128 65534
i
love
you
通訊埠監聽
# nc -v 192.168.18.128 -z 80
Connection to 192.168.18.128 80 port [tcp/http] succeeded!
# nc -v 192.168.18.128 -z 110
Connection to 192.168.18.128 110 port [tcp/pop3] succeeded!
沒有留言:
張貼留言