windows如何確認wi-fi訪問以及是否需要熱點身份驗證?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,它是一個由Q&a網站組成的社群驅動分組。...

windows如何確認wi-fi訪問以及是否需要熱點身份驗證?Windows is quite adept at telling you if you have a properly functioning Internet connection, but how exactly does it do so? Digging into how Windows handles the problem offers insight into Windows connectivity messages.

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,它是一個由Q&a網站組成的社群驅動分組。

問題

超級使用者讀者N.Hinkle提出了以下有關Windows internet檢查和身份驗證過程的問題:

In Windows 7, the notification area networking icon will show an error indicator if there is no internet access 007Ys3FFgy1gpgfi**nk4j300k00g0cw, and the error icon goes away once there is a successful connection to the internet 007Ys3FFgy1gpgfit29lpj300i00e05i. 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:

Ppz3v

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 resp***e at all, but I haven’t seen anywhere that this process or the services used are documented. Can anybody explain how this works?

在使用現代作業系統時,這樣的檢查是我們認為理所當然的事情之一,但即使是使用者體驗中最理所當然的元素也有其內在機制。Windows如何告訴我們是否有internet連線以及是否需要登入Wi-Fi驗證門戶?

答案

超級使用者貢獻者Tobias Plutat提供了對流程的一些見解:

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 mechani** 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.

另一位撰稿人Jeff Atwood強調了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. A HTTP request for http://www.msftncsi.com/ncsi.txt returning 200 OK and the textMicrosoft NCSI

This can be disabled with a registry setting. If you set:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ NlaSvc\Parameters\Internet\EnableActiveProbing

to 0, Windows will no longer probe for internet connectivity.

Apple does something very similar in iOS to detect internet connectivity and possible hotel “login” wifi pages, etc.

雖然整個過程對終端使用者通常是100%透明的,但偶爾在透過Wi-Fi熱點的web門戶進行身份驗證之後,您會發現自己盯著NSCSI.txt檔案. 你最終是如何看到一個不起眼的文字文件而不是你試圖載入的網頁,再加上之前關於這個主題的答案,這已經不再是一個謎了。


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-12 03:47
  • 閱讀 ( 53 )
  • 分類:網際網路

你可能感興趣的文章

保護outlook電子郵件和microsoft帳戶安全的10個技巧

... 但是你的Outlook帳戶如此重要還有另一個原因。Windows 10允許您使用Microsoft帳戶登入PC。如果你使用這個功能,有人竊取你的帳戶密碼,你可能會有**煩。 ...

  • 發佈於 2021-03-11 20:44
  • 閲讀 ( 52 )

設定一個強大的字母數字密碼和其他16種方式來保護你的iphone

... 你如何保護你的iPhone?你知道我們沒有提到的其他方法嗎?請在評論中告訴我們您的經驗和建議。 ...

  • 發佈於 2021-03-12 16:12
  • 閲讀 ( 55 )

如何為雲備份服務啟用雙因素身份驗證

...軟推出的雲端儲存服務。正如您所料,它被緊密地嵌入到windows10和其他微軟服務中。如果你深入微軟的生態系統,使用它是一個不需要大腦的。它透過基於軟體和基於SMS的令牌支援2FA。 ...

  • 發佈於 2021-03-12 18:34
  • 閲讀 ( 47 )

如何為您的遊戲帳戶啟用雙因素身份驗證

... Steam只允許2FA透過其移動應用程式。為Android、iOS或Windows Phone下載並使用您的帳戶登入。接下來,輕觸左側滑出選單並選擇Steam Guard。該應用程式將引導您透過新增一個電話號碼來驗證您的簡訊帳戶。 ...

  • 發佈於 2021-03-16 00:05
  • 閲讀 ( 41 )

駭客利用公共wi-fi竊取你身份的5種方法

...,也適用於智慧**等裝置。例如,Opera已經將其VPN服務從Windows和Mac擴充套件到Android**,或者您可以在Chrome上使用外掛。如果你的大部分私人業務都是在智慧**上進行的,請檢視這些Android應用程式或iPhone或iPad的VPN服務。 ...

  • 發佈於 2021-03-17 07:07
  • 閲讀 ( 45 )

7個祕密的iphone功能會給你的朋友留下深刻印象

... 如何在iphone上設定apple pay ...

  • 發佈於 2021-03-21 13:21
  • 閲讀 ( 56 )

如何將樹莓圓周率成為一個vpn安全的旅行路由器

... 如果您使用的是Windows,那麼在開始之前還需要為Windows安裝PuTTY或其他SSH客戶機。 ...

  • 發佈於 2021-03-21 22:33
  • 閲讀 ( 50 )

如果無法訪問程式碼生成器,如何登入facebook

...場。iOS和Android的Facebook應用程式中提供了程式碼生成器。Windows商店應用程式模仿Facebook網站,不包含程式碼生成器。 ...

  • 發佈於 2021-03-22 16:57
  • 閲讀 ( 48 )

如何在您的xbox帳戶上啟用2fa

...入或驗證。然後選擇要使用的方法,從電子郵件和電話到Windows Hello和Microsoft authenticator應用程式。 ...

  • 發佈於 2021-03-29 04:17
  • 閲讀 ( 54 )

現在是2020年。使用公共wi-fi仍然危險嗎?

...的裝置可能會受到網路上其他裝置的攻擊。這就是為什麼Windows個人電腦預設啟用防火牆的原因,也是為什麼當你告訴Windows你連線的是公共Wi-Fi而不是私人Wi-Fi網路時,防火牆的限制性更大的原因。如果您告訴計算機您已連線到專...

  • 發佈於 2021-04-02 16:56
  • 閲讀 ( 48 )

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦