首页 > 系统服务 > 详细

chat over lan from linux to linux

时间:2015-05-27 10:25:51      阅读:180      评论:0      收藏:0      [点我收藏+]

You actually can do this with netcat, I believe it is already installed in most cases on linux, and it‘s dead simple.

On PC 1, type: nc -l 55555

On PC 2, type: nc $IP 55555, where $IP equals the local IP address of PC 1 [e.x. 192.168.2.50]

Once you do this, in the same box, from PC 2, type something and press enter. Then go over and look at PC 1, and your message will be there! It works both ways.

You can also choose a different port than 55555, or if you opened your firewall, you can do this through the internet via your external IP.


本文出自 “厚德载福” 博客,请务必保留此出处http://jerrywilson.blog.51cto.com/8326089/1655494

chat over lan from linux to linux

原文:http://jerrywilson.blog.51cto.com/8326089/1655494

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!