บนคอมพิวเตอร์ Windows หากต้องการเชื่อมต่ออุปกรณ์อื่น สามารถทำได้โดยตั้งค่า Remote Desktop connection ใช้แอป Microsoft Remote Desktop บน Windows 10 เพื่อเชื่อมต่อและเข้าถึงคอมพิวเตอร์อื่นผ่านเครือข่ายเดียวกันหรืออินเทอร์เน็ต การตั้งค่า remote connection ช่วยให้คุณเข้าถึงไฟล์ โปรแกรม และทรัพยากรของคอมพิวเตอร์ Windows จากคอมพิวเตอร์อื่นที่ใช้ Windows ให้ทำตามขั้นตอนด้านล่างเพื่อตั้งค่าคอมพิวเตอร์และเครือข่ายสำหรับการเชื่อมต่อระยะไกล
วิธีใช้แอป Remote Desktop บน Windows 10
เปิดใช้งาน Remote Connections บนคอมพิวเตอร์ของคุณ
ก่อนตั้งค่า remote access ต้องเปิดใช้งาน Remote Desktop Connections บนคอมพิวเตอร์ก่อน ข้อจำกัด: ไม่ใช่ทุกเวอร์ชัน/เอดิชันของ Windows รองรับ Remote Desktop Connections ฟีเจอร์นี้มีเฉพาะ Pro และ Enterprise ของ Windows 10 และ 8, และ Windows 7 Professional, Ultimate, Enterprise เท่านั้น
เพื่อเปิดใช้งาน remote connections บน PC:
- พิมพ์ 'control panel' ใน Start Menu Search Bar คลิกผลลัพธ์เพื่อเปิด
- คลิก 'System and Security'
- ภายใต้แท็บ System คลิก 'Allow remote access'
- ภายใต้แท็บ Remote ติ๊กถูก 'Allow remote connections to this computer' คลิก 'Apply' และ OK บันทึก
หากใช้ Windows 10 (มี Fall Update) ทำได้ง่ายกว่านี้:
- กด Windows Key + I เปิด Settings คลิก System
- เลือก 'Remote Desktop' จากแผงซ้าย เปิด toggle ถัดจาก Enable Remote Desktop
ตั้งค่า Static IP Address บน Windows 10
หากใช้ private network IP address จะเปลี่ยนทุกครั้งที่ connect/disconnect หากจะใช้ remote desktop connection บ่อยๆ ควรตั้งค่า static IP address บนคอมพิวเตอร์ ขั้นตอนนี้สำคัญมาก เพราะหากไม่ตั้ง static IP จะต้องตั้งค่า port forwarding บน router ใหม่ทุกครั้งที่ IP address เปลี่ยน
- กด Windows Key + R พิมพ์ ncpa.cpl กด Enter เปิด Network Connections
- คลิกขวา ที่ network connection (WiFi/Ethernet) เลือก Properties
- เลือก Internet Protocol Version 4 (TCP/IPv4) คลิก Properties
- ติ๊กถูก "Use the following IP address" ป้อนข้อมูล:
IP address: 10.8.1.204
Subnet mask: 255.255.255.0
Default gateway: 10.8.1.24 - ต้องใช้ local IP address ที่ถูกต้อง ไม่衝突กับ local DHCP Scope และ default gateway ต้องเป็น IP address ของ router
- หมายเหตุ: หา DHCP configuration ได้ที่ DHCP settings บน router admin panel หากไม่มี credentials เข้า router admin ให้หา TCP/IP configuration ปัจจุบันด้วยคำสั่ง ipconfig /all ใน Command Prompt
- ติ๊กถูก "Use the following DNS server addresses" ใช้ DNS:
Preferred DNS server: 8.8.4.4
Alternate DNS server: 8.8.8.8 - คลิก OK แล้ว Close
ตั้งค่า Router
หากต้องการ remote access ผ่านอินเทอร์เน็ต ต้องตั้งค่า router ให้อนุญาต remote connection ต้องรู้ public IP address ของอุปกรณ์ เพื่อติดต่ออุปกรณ์ผ่านอินเทอร์เน็ต หาได้โดย:
- เปิดเว็บเบราว์เซอร์ ไป google.com หรือ bing.com
- ค้นหา 'What's my IP' จะเห็น public IP address
เมื่อรู้ public IP แล้ว ทำต่อไปเพื่อ forward port 3389 บน router:
- พิมพ์ 'control panel' ใน Start Menu Search Bar คลิกเปิด
- กด Windows Key + R Run dialog จะเปิด พิมพ์ ipconfig กด Enter
- Windows IP configurations โหลด บันทึก IPv4 Address และ Default Gateway (คือ IP address ของ router)
- เปิดเว็บเบราว์เซอร์ พิมพ์ default gateway ที่บันทึกไว้ กด Enter
- ล็อกอิน router ด้วย username/password
- ในส่วน 'Port Forwarding' ของ settings เปิดใช้ Port Forwarding
- เพิ่มข้อมูลภายใต้ port forwarding:
- SERVICE NAME: ชื่ออ้างอิงที่ต้องการ
- PORT RANGE: port number 3389
- LOCAL IP: IPv4 address ของคอมพิวเตอร์คุณ
- LOCAL PORT: 3389
- PROTOCOL: เลือก TCP
- เพิ่ม rule ใหม่ คลิก Apply บันทึกการตั้งค่า
ใช้แอป Microsoft Remote Desktop เริ่มต้น Remote Desktop Connection
ตอนนี้ตั้งค่าคอมพิวเตอร์และเครือข่ายเสร็จแล้ว สามารถเริ่ม remote desktop connection ได้:
- จาก Windows Store ดาวน์โหลดแอป Microsoft Remote Desktop
- เปิดแอป คลิกไอคอน 'Add' มุมขวาบน
- เลือก 'Desktop' จากรายการ
- ในฟิลด์ 'PC Name' ใส่ IP address ของ PC คุณ ขึ้นอยู่กับประเภทการเชื่อมต่อ แล้วคลิก 'Add account'
- PC ใน private network: ใส่ local IP address ของคอมพิวเตอร์ที่ต้องการเชื่อมต่อ
- PC ผ่านอินเทอร์เน็ต: ใส่ public IP address ของคอมพิวเตอร์ที่ต้องการเชื่อมต่อ
- ป้อน sign-in credentials ของ remote computer ใส่ local username และ password สำหรับ local account หรือใช้ Microsoft account credentials คลิก 'Save'
- จะเห็นคอมพิวเตอร์ที่ต้องการเชื่อมต่อในรายการ คลิกที่คอมพิวเตอร์เพื่อเริ่ม remote desktop connection คลิก 'Connect'
จะเชื่อมต่อกับคอมพิวเตอร์เป้าหมายจากระยะไกลได้แล้ว
เพื่อเปลี่ยนการตั้งค่าการเชื่อมต่อระยะไกล คลิกไอคอนเฟืองมุมขวาบนหน้าต่าง Remote Desktop ตั้งค่า display size, session resolution ฯลฯ เพื่อเปลี่ยนการตั้งค่าสำหรับการเชื่อมต่อเฉพาะ คลิกขวาที่คอมพิวเตอร์ในรายการ เลือก 'Edit'
แนะนำเพิ่มเติม: เข้าถึงคอมพิวเตอร์จากระยะไกลด้วย Chrome Remote Desktop
แทนที่จะใช้ Microsoft Remote Desktop app สามารถใช้ Remote Desktop Connection app เก่าได้:
- ใน Start Menu Search พิมพ์ 'Remote Desktop Connection' เปิดแอป
- แอปจะเปิด พิมพ์ชื่อ remote computer (หาได้ที่ System Properties บน remote computer) คลิก Connect
- ไป 'More Options' หากต้องการเปลี่ยนการตั้งค่า
- เชื่อมต่อด้วย local IP address ก็ได้
- ป้อน credentials ของ remote computer
- คลิก OK
- จะเชื่อมต่อกับคอมพิวเตอร์เป้าหมายจากระยะไกลได้แล้ว
- เพื่อเชื่อมต่อเครื่องเดิมในอนาคตง่ายขึ้น: เปิด File Explorer ไป Network คลิกขวาที่คอมพิวเตอร์ที่ต้องการ เลือก 'Connect with Remote Desktop Connection'
นี่คือขั้นตอนการใช้ Remote Desktop app บน Windows 10 โปรดระวังเรื่องความปลอดภัยเกี่ยวกับการป้องกันการเข้าถึงโดยไม่ได้รับอนุญาต