VPN (Virtual Private Network) สร้างอุโมงค์เข้ารหัสข้อมูล ป้องกันแฮกเกอร์ขโมยข้อมูล และเข้าถึงเนื้อหาที่ถูกบล็อกตามภูมิศาสตร์ สามารถสร้าง VPN Server บน Windows 10 เองได้โดยไม่ต้องจ่ายเงินบริการภายนอก
ขั้นตอนตั้งค่า VPN Server บน Windows 10
1. หา Public IP Address
- เปิดเบราว์เซอร์ → ไป whatismyip.com หรือค้นหา "What is my IP"
- บันทึก Public IP ที่แสดง
ปัญหา: Dynamic IP เปลี่ยนได้ → ต้องตั้งค่า DDNS ใน Router
2. ตั้งค่า DDNS (Dynamic DNS) ใน Router
- Win + R →
cmd(Admin) →ipconfig→ หา Default Gateway - เปิด Default Gateway IP ในเบราว์เซอร์ → Login Router
- หา DDNS settings (มักอยู่ใน Advanced tab)
- Service Provider: No-IP → Username: อีเมล → Password: รหัสผ่าน No-IP → Hostname: myddns.net
- Login No-IP.com → DDNS settings → Modify → Hostname IP = 1.1.1.1 → Update Hostname
- รีสตาร์ท Router
3. ตั้งค่า Port Forwarding (Port 1723)
- Login Router → หา Port Forwarding / Virtual Server / NAT
- Local Port: 1723 → Protocol: TCP → Port Range: 47 (GRE protocol)
4. สร้าง VPN Server ใน Windows 10
- Control Panel → Network and Internet → Network and Sharing Center
- ซ้าย: Change adapter settings
- กด Alt → File → New Incoming Connection
- เลือก User ที่อนุญาต → Next
- ติ๊ก Through the Internet → Next
- เลือก Internet Protocol Version 4 (TCP/IPv4) → Properties
- ติ๊ก Allow callers to access my local area network → Specify IP addresses (กำหนด IP range) → OK → Allow access → Close
5. ตั้งค่า Windows Firewall ให้ผ่าน VPN
- ค้นหา "allow an app through windows firewall" → Change settings
- หา Routing and Remote Access → ติ๊ก Private และ Public → OK
6. สร้าง VPN Connection บนอุปกรณ์ Client (มือถือ/แลปท็อป)
- Control Panel → Network and Sharing Center → Change adapter settings
- คลิกขวา VPN server ที่สร้าง → Properties
- แท็บ General: Hostname = DDNS domain ที่ตั้งค่า (myddns.net)
- แท็บ Security: Type of VPN = PPTP → Data encryption = Maximum strength
- แท็บ Networking: ยกเลิกติ๊ก IPv6, ติ๊ก IPv4 → Properties → Advanced → ยกเลิกติ๊ก Use default gateway on remote network
- Settings → Network & Internet → VPN → Connect
บทความแนะนำ:
- แก้ Spotify Web Player Not Working
- ตั้งค่า Network File Sharing บน Windows 10
วิธีนี้สร้าง VPN Server ฟรีบนเครื่องตัวเอง ควบคุมข้อมูลเต็มที่ เหมาะสำหรับการเข้าถึงไฟล์ระยะไกลหรือเล่นเกม LAN ผ่านอินเทอร์เน็ต