我似乎无法连接到本地计算机上的localhost。我进入终端并输入:
ping google.com我看到了IP地址。
如果我随后尝试ping我本地主机,
ping 127.0.0.1我什么也没看见。
我的本地路由器连接到哪里?
编辑
ipconfig:
rick@instance-2:~$ ipconfig
No command 'ipconfig' found, did you mean:
Command 'tpconfig' from package 'tpconfig' (universe)
Command 'ifconfig' from package 'net-tools' (main)
Command 'iwconfig' from package 'wireless-tools' (main)
ipconfig: command not foundedit2
ifconfig:
rick@instance-2:~$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:31709438 errors:0 dropped:0 overruns:0 frame:0
TX packets:31709438 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22644332327 (22.6 GB) TX bytes:22644332327 (22.6 GB)
lo:0 Link encap:Local Loopback
inet addr:192.168.0.1 Mask:255.255.255.0
UP LOOPBACK RUNNING MTU:65536 Metric:1发布于 2015-10-09 01:31:18
您可以通过走出终端并执行mashing命令来断开与本地人的远程主机的连接:
tracert google.com在那里,您将看不到PI地址
tracert 127.0.0.1你什么都看得见
这就是你的远程漏斗断开连接的地方。
https://stackoverflow.com/questions/33022082
复制相似问题