最近一直在做LWIP的web服务器实验,是用周立功的例程做的
现象:
1. 内网之间的通信没有问题,我在电脑上可以访问,一切正常;
2. 外网无法访问,用IAR仿真在线调试,设置断点,发现一直木有接收到链接请求,
也就无从说到向外发送数据了;
问题:
1.是LWIP只能用于内网之间的通信,而不能用于外网么?
2.还是说在这个例程里面,还要做哪些设置更改,才能与外网通信?
求大侠指点!
实验前提:
1. 不带操作系统
2. ARM内设置的IP:192.168.1.3
MASK:255.255.255.0
GATEWAY:192.168.1.1
端口:1026
3. 路由器的网关:192.168.1.1
4. 我电脑的IP:192.168.1.2
5. 已经在路由器上设置了转发规则,端口1026------->192.168.1.3
6. 公司内对应外网的IP地址:180.175.24.98
7. 让朋友从外面公司从web访问180.175.24.98:1026
结果一直是














[
本帖最后由 xuhe1206 于 2012-11-22 08:57 编辑 ]
此帖出自
小平头技术问答
一周热门 更多>