搭建自己的简易服务器(公网)
原文链接:https://blog.csdn.net/pxw1992/article/details/102879092
大部分时候做嵌入式开发的,如果是wifi,可以工作在局域网,至于物联网设备,插手机卡的那种就需要公网ip,测试起来相对比较麻烦,电信宽带用户有的可以映射使用,但是ip会改变,需要一个设备不停的发送心跳,维持这个ip,测试有很大的局限性。域名相对而言较好,但是一旦IP变了,反映时间有点长。花生壳相对而言还是不错的,有流量控制,必须有实际设备。本文不具体讨论上述方式。这里使用一个公网的服务器测试使用,还是免费的哦,目前绝对不花钱,也不搞破解。使用的系统是centos,会c语言即可。
阿里云服务器与个人电脑TCP通信的调试
https://blog.csdn.net/naruhina/article/details/104209646