Jawaban Lee B benar, tetapi inilah beberapa RFC yang relevan jika Anda tertarik. 0.0.0.0: Dari RFC1122 , Bagian 3.1.2.3:
Hanya saja, "Host ini di jaringan ini" ... karena jawaban Lee B menyatakan ini diterjemahkan ke semua alamat IP yang tersedia di Host Anda. Hosting layanan pada 0.0.0.0 akan secara otomatis Host layanan itu pada setiap antarmuka yang dapat dialamatkan. 127.0.0.1: Dari RFC5735 :
Perbedaan antara 0.0.0.0 dan alamat loopback 127.0.0.1 adalah bahwa alamat loopback dirancang untuk memungkinkan antarmuka IP berfungsi penuh di dalam Host itu sendiri, terlepas dari apa yang tampak seperti pengaturan jaringan, jika ada, seperti apa. Lalu lintas yang dikirim ke perangkat loopback segera diterima di sana. Bukan karena jaringan loopback "merujuk" ke Host Anda sendiri ... itu lebih seperti Anda memiliki segmen jaringan mini di Host Anda yang perangkat, proses dan soketnya dapat dibuka dan terhubung.
IP addresses in Internet Protocol (IP) version 4 (IPv4) range from 0.0.0.0 up to 255.255.255.255. The IP address 0.0.0.0 has several special meanings on computer networks. However, it can not be used as a general-purpose device address. PixabayThis IP address is structured like a regular one (it has four places for numbers). However, it's a placeholder address or one that's used to describe that there isn't a normal address assigned—neither public nor private. For example, instead of putting no IP address into the network area of a program, 0.0.0.0 can be used to mean anything from accept all IP addresses or block all IP addresses to the default route. It's easy to confuse 0.0.0.0 and 127.0.0.1. An address with four zeros has several defined uses (as described below), while 127.0.0.1 has one specific purpose of allowing a device to send messages to itself.
The 0.0.0.0 IP address is sometimes called a wildcard address, unspecified address, or INADDR_ANY. In short, 0.0.0.0 is a non-routable address that describes an invalid or unknown target. However, it means something different depending on whether it's seen on a client device like a computer or on a server machine. PixabayPCs and other client devices normally show an address of 0.0.0.0 when not connected to a TCP/IP network. A device might give itself this address by default whenever it is offline. It might also be automatically assigned by DHCP in the case of address assignment failures. When set with this address, a device cannot communicate with any other devices on that network. 0.0.0.0 can also theoretically be set as a device's subnet mask rather than its IP address. However, a subnet mask with this value has no practical purpose. Both the IP address and network mask are typically assigned 0.0.0.0 on a client. Depending on the way it's used, firewall or router software might use 0.0.0.0 to indicate that every IP address should be blocked (or allowed). Some devices, particularly network servers, possess more than one network interface. TCP/IP software applications use 0.0.0.0 as a programming technique to monitor network traffic across all the IP addresses currently assigned to the interfaces on that multi-homed device. PixabayWhile connected computers do not use this address, messages carried over IP sometimes include 0.0.0.0 inside the protocol header when the source of the message is unknown. If a computer is properly configured for TCP/IP networking but shows 0.0.0.0 for an address, try the following to troubleshoot this problem and obtain a valid address:
Thanks for letting us know!
Tell us why! Sebagian besar dari kita pernah mendengar tentang '127.0.0.1 dan 0.0.0.0' tetapi mungkin tidak terlalu memikirkannya, tetapi jika keduanya benar-benar tampak mengarah ke lokasi yang sama, lalu apa perbedaan sebenarnya di antara keduanya? Pos T&J SuperUser hari ini membantu menjelaskan hal-hal bagi pembaca yang bingung. Sesi Tanya & Jawab hari ini hadir atas kebaikan SuperUser — subdivisi Stack Exchange, pengelompokan situs web Tanya Jawab berbasis komunitas.
Apa perbedaan antara 127.0.0.1 dan 0.0.0.0?
Punya sesuatu untuk ditambahkan ke penjelasannya? Suarakan di komentar. Ingin membaca lebih banyak jawaban dari pengguna Stack Exchange yang paham teknologi? Lihat utas diskusi lengkap di sini . |