Bagaimana Windows Mengkonfirmasi Akses Wi-Fi dan Apakah Otentikasi Hot Spot Dibutuhkan?

Daftar Isi:

Bagaimana Windows Mengkonfirmasi Akses Wi-Fi dan Apakah Otentikasi Hot Spot Dibutuhkan?
Bagaimana Windows Mengkonfirmasi Akses Wi-Fi dan Apakah Otentikasi Hot Spot Dibutuhkan?

Video: Bagaimana Windows Mengkonfirmasi Akses Wi-Fi dan Apakah Otentikasi Hot Spot Dibutuhkan?

Video: Bagaimana Windows Mengkonfirmasi Akses Wi-Fi dan Apakah Otentikasi Hot Spot Dibutuhkan?
Video: Cara Mematikan LockScreen (Layar Terkunci) Windows 7, 8 dan 10 - YouTube 2024, April
Anonim
Windows cukup mahir mengatakan kepada Anda jika Anda memiliki koneksi Internet yang berfungsi dengan baik, tetapi bagaimana tepatnya melakukannya? Menggali bagaimana Windows menangani masalah menawarkan wawasan tentang pesan konektivitas Windows.
Windows cukup mahir mengatakan kepada Anda jika Anda memiliki koneksi Internet yang berfungsi dengan baik, tetapi bagaimana tepatnya melakukannya? Menggali bagaimana Windows menangani masalah menawarkan wawasan tentang pesan konektivitas Windows.

Sesi Tanya & Jawab Hari ini hadir untuk memberi kami SuperUser - subdivisi Stack Exchange, pengelompokan komunitas situs web Tanya-Jawab.

Pertanyaan

Pembaca SuperUser N. Hinkle mengajukan pertanyaan berikut tentang pemeriksaan Windows internet dan proses otentikasi:

In Windows 7, the notification area networking icon will show an error indicator if there is no internet access

, and the error icon goes away once there is a successful connection to the internet
, and the error icon goes away once there is a successful connection to the internet
. Sometimes, if the WiFi connection requires an in-browser authentication step, like on many guest networks in hotels or universities, then the following pop-up bubble appears, saying as much:
. Sometimes, if the WiFi connection requires an in-browser authentication step, like on many guest networks in hotels or universities, then the following pop-up bubble appears, saying as much:
Image
Image

How does Windows know whether or not it has a successful internet connection?

Presumably it is checking some online Microsoft service to see whether it has a successful connection, gets redirected to some other page, or doesn’t get any response at all, but I haven’t seen anywhere that this process or the services used are documented. Can anybody explain how this works?

Pemeriksaan semacam ini adalah salah satu dari banyak hal yang kita terima ketika menggunakan sistem operasi modern, tetapi bahkan elemen yang paling banyak diambil dari pengalaman pengguna memiliki mekanisme yang mendasarinya. Bagaimana cara Windows memberi tahu kami jika ada koneksi internet dan apakah kami perlu masuk ke portal autentikasi Wi-Fi?

Jawabannya

Kontributor SuperUser Tobias Plutat menawarkan beberapa wawasan ke dalam proses:

After some digging (the sheer number of network and Internet related services in Windows is astonishing), I think I found it. Windows Vista and 7 have a variety of Network Awareness features, one of which is the Network Connectivity Status Indicator that performs connectivity tests that in turn are used by the network systray icon. The test for internet connectivity is simple:

  1. NCSI tries to load a specific page via HTTP (more precisely: a text document) and tests whether it can be retrieved.
  2. If that is not successful, Windows reports “No Internet access”.

The mechanism also checks whether the domain the document is hosted on resolves to the expected IP address. So, it might also assume proper internet access if this test is successful but the document can’t be retrieved.

The reason it reports “No Internet Access” when you haven’t authenticated on a Hotspot yet lies in the way a Hotspot works. It blocks all ports besides 80 and 443 (for HTTP and HTTPS, respectively), which get redirected to the Hotspot’s authentication server and might mess with DNS requests in one way or another. Thus, NCSI can neither resolve the domain its test file is hosted on, and even if it could it wouldn’t reach the actual file because HTTP traffic is redirected to the Authentication server.

Kontributor lain, Jeff Atwood, menyoroti beberapa kutipan kunci dari referensi dokumen Tobias:

Here are the details of the connection status determination process:

The following list describes how NCSI might communicate with a Web site to determine whether a network has Internet connectivity:

  1. A request for DNS name resolution of

    dns.msftncsi.com

  2. Permintaan HTTP untuk

    https://www.msftncsi.com/ncsi.txt

    mengembalikan 200 OK dan teks

    Microsoft NCSI

  3. Ini dapat dinonaktifkan dengan pengaturan registri. Jika Anda mengatur:

    HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services NlaSvc Parameters Internet EnableActiveProbing

    untuk

    0

    Windows tidak akan lagi memeriksa konektivitas internet.

    Apple melakukan sesuatu yang sangat mirip di iOS untuk mendeteksi konektivitas internet dan kemungkinan halaman "login" hotel, dll.

    Meskipun seluruh proses ini biasanya 100% transparan untuk pengguna akhir, terkadang setelah mengautentikasi melalui portal web hot spot Wi-Fi, Anda akan menemukan diri Anda menatap konten NSCSI.txt yang sebenarnya. Bagaimana Anda akhirnya melihat pada dokumen teks tak mencolok alih-alih halaman web yang Anda coba muat tidak lagi menjadi misteri ketika digabungkan dengan jawaban sebelumnya pada topik tersebut.

    Memiliki sesuatu untuk ditambahkan ke penjelasan? Bicaralah di komentar. Ingin membaca lebih banyak jawaban dari pengguna Stack Exchange yang paham teknologi lainnya? Lihat diskusi lengkap di sini.

Direkomendasikan: