บทความนี้แสดงวิธีหาการตั้งค่า Proxy Server ของคอมพิวเตอร์ Windows ผ่าน PowerShell, CMD, Registry ฯลฯ หากเจอปัญหาดาวน์โหลด Windows Updates หรือปัญหาการเชื่อมต่อเครือข่าย ลอง รีเซ็ต Proxy Settings บน Windows 10 ดู
WinHTTP Proxy คืออะไร?
จาก Microsoft: Windows HTTP Services (WinHTTP) เป็นเทคโนโลยีสำหรับเข้าถึง HTTP ที่ให้อินเทอร์เฟซระดับสูงสำหรับโปรโตคอล HTTP/1.1 WinHTTP ออกแบบมาสำหรับสถานการณ์ฝั่งเซิร์ฟเวอร์โดยแอปพลิเคชันเซิร์ฟเวอร์ที่สื่อสารกับเซิร์ฟเวอร์ HTTP รวมถึงบริการระบบและแอปพลิเคชันไคลเอ็นต์ที่ใช้ HTTP
วิธีตรวจสอบ Proxy Server Settings ใน Windows 11/10
1. Command Line (netsh.exe)
เปิด Command Prompt ด้วยสิทธิ์ Administrator พิมพ์:
netsh.exe winhttp show proxy
2. Google Chrome
ใน Address bar พิมพ์:
chrome://net-internals/#proxy
3. Mozilla Firefox
ใน Address bar พิมพ์:
about:preferences#advanced
เลื่อนลง คลิกปุ่ม Network Proxy Settings
4. Registry Editor
เปิด REGEDIT ไปที่:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
ProxyEnable ควบคุมการตั้งค่า Proxy: 0 = ปิด, 1 = เปิด หากใช้ Proxy จะพบค่าที่ ProxyServer
5. PowerShell
รัน PowerShell เป็น Administrator รันคำสั่ง:
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | findstr ProxyServer
6. Internet Options
เปิด Internet Options > แท็บ Connections > คลิก LAN settings จะเห็น Proxy server settings
7. Windows Settings
Windows 11: Settings > Network & Internet > Proxy
Windows 10: Settings > Network & Internet > Proxy
รีเซ็ต WinHTTP Proxy Settings ใน Windows 11/10
หากระบบใช้ Proxy และต้องการลบออก ให้เปิด Command Prompt ด้วยสิทธิ์ Administrator พิมพ์:
netsh winhttp reset proxy
คำสั่งนี้จะลบ Proxy Server และตั้งค่าเป็น "direct access" ไปยังอินเทอร์เน็ต
บทความเกี่ยวกับการรีเซ็ตการตั้งค่าอื่นๆ: รีเซ็ต Local Group Policy, Windows Store Apps, Windows Store Cache, Keyboard, Touchpad, Surface Pro, Microsoft Edge, Internet Explorer, Recycle Bin, Chrome, Firefox, Windows Security, Windows Firewall, Winsock, TCP/IP, DNS Cache, Windows Update, Windows Password ฯลฯ