Skip to content

Instantly share code, notes, and snippets.

View Brian24NX's full-sized avatar
:octocat:
Coding as always

Brian Zhou Brian24NX

:octocat:
Coding as always
  • Apple Inc.
  • USA
View GitHub Profile
@zxhfighter
zxhfighter / localhost.md
Last active September 19, 2024 20:24
127.0.0.1 和 0.0.0.0 的区别

127.0.0.1、localhost、0.0.0.0、本机IP地址

localhost

首先,localhost 就是一个域名,域名指向 127.0.0.1,两者是一样的,如果是 mac,可以在 /etc/hosts 文件中看到这一行。

127.0.0.1     localhost