React-Native: Could not connect to development server. Connect via Wi-Fi
If you have received this error and none of these methods solved the issue, just try to connect via Wi-Fi:
- Your mobile device (or simulator) and workstation (PC/Mac) have to be on the same Wi-Fi network
- On the device open the In-App Developer Menu (cmd ⌘ + D / cmd ⌘ + M or just shake the device)
- Navigate to Dev Settings — Debug server host & port for device
- Type your workstation IP address and port of local dev server (e.g. 192.168.0.3:8081)
- Return to Developer menu ir select Reload.