如果我在linux下做一个服务器程序,如何是外网能够访问?内网IP是10.96.105.13,我是通过无限路由器上网的,ifconfig命令结果如下
ifconfig //这里收入ifconfig命令下面为结果
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 51050 bytes 15478302 (14.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 51050 bytes 15478302 (14.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
p33p1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 08:60:6e:de:22:f8 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.96.105.13 netmask 255.255.128.0 broadcast 10.96.127.255
inet6 fe80::6e71:d9ff:fe34:d1e1 prefixlen 64 scopeid 0x20<link>
ether 6c:71:d9:34:d1:e1 txqueuelen 1000 (Ethernet)
RX packets 24587 bytes 10779051 (10.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 30400 bytes 5398395 (5.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
那个是windows环境下的,我的是linux环境
追答你又不是Linux做软由。这跟Linux还是windows无关,网络上的只是在路由器上映射即可。
追问我用的学校电信提供的无线连的网,刚才试了下那个方法,还是没解决。。