Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

ตั้งค่า VPN บน Windows 10 เอง: คู่มือทีละขั้นตอนสำหรับการเล่นอินเทอร์เน็ตปลอดภัย

VPN (Virtual Private Network) สร้างอุโมงค์เข้ารหัสข้อมูล ป้องกันแฮกเกอร์ขโมยข้อมูล และเข้าถึงเนื้อหาที่ถูกบล็อกตามภูมิศาสตร์ สามารถสร้าง VPN Server บน Windows 10 เองได้โดยไม่ต้องจ่ายเงินบริการภายนอก

ขั้นตอนตั้งค่า VPN Server บน Windows 10

1. หา Public IP Address

  1. เปิดเบราว์เซอร์ → ไป whatismyip.com หรือค้นหา "What is my IP"
  2. บันทึก Public IP ที่แสดง

ปัญหา: Dynamic IP เปลี่ยนได้ → ต้องตั้งค่า DDNS ใน Router

2. ตั้งค่า DDNS (Dynamic DNS) ใน Router

  1. Win + R → cmd (Admin) → ipconfig → หา Default Gateway
  2. เปิด Default Gateway IP ในเบราว์เซอร์ → Login Router
  3. หา DDNS settings (มักอยู่ใน Advanced tab)
  4. Service Provider: No-IP → Username: อีเมล → Password: รหัสผ่าน No-IP → Hostname: myddns.net
  5. Login No-IP.com → DDNS settings → Modify → Hostname IP = 1.1.1.1 → Update Hostname
  6. รีสตาร์ท Router

3. ตั้งค่า Port Forwarding (Port 1723)

  1. Login Router → หา Port Forwarding / Virtual Server / NAT
  2. Local Port: 1723 → Protocol: TCP → Port Range: 47 (GRE protocol)

4. สร้าง VPN Server ใน Windows 10

  1. Control Panel → Network and Internet → Network and Sharing Center
  2. ซ้าย: Change adapter settings
  3. กด Alt → File → New Incoming Connection
  4. เลือก User ที่อนุญาต → Next
  5. ติ๊ก Through the Internet → Next
  6. เลือก Internet Protocol Version 4 (TCP/IPv4) → Properties
  7. ติ๊ก Allow callers to access my local area network → Specify IP addresses (กำหนด IP range) → OK → Allow access → Close

5. ตั้งค่า Windows Firewall ให้ผ่าน VPN

  1. ค้นหา "allow an app through windows firewall" → Change settings
  2. หา Routing and Remote Access → ติ๊ก Private และ Public → OK

6. สร้าง VPN Connection บนอุปกรณ์ Client (มือถือ/แลปท็อป)

  1. Control Panel → Network and Sharing Center → Change adapter settings
  2. คลิกขวา VPN server ที่สร้าง → Properties
  3. แท็บ General: Hostname = DDNS domain ที่ตั้งค่า (myddns.net)
  4. แท็บ Security: Type of VPN = PPTP → Data encryption = Maximum strength
  5. แท็บ Networking: ยกเลิกติ๊ก IPv6, ติ๊ก IPv4 → Properties → Advanced → ยกเลิกติ๊ก Use default gateway on remote network
  6. Settings → Network & Internet → VPN → Connect

บทความแนะนำ:

  • แก้ Spotify Web Player Not Working
  • ตั้งค่า Network File Sharing บน Windows 10

วิธีนี้สร้าง VPN Server ฟรีบนเครื่องตัวเอง ควบคุมข้อมูลเต็มที่ เหมาะสำหรับการเข้าถึงไฟล์ระยะไกลหรือเล่นเกม LAN ผ่านอินเทอร์เน็ต