This tutorial will run on Ubuntu 20.04
- Install Android debug bridge (
adb
)
$ sudo apt install adb
- Connect to WSA
- Connect to WSA via IP
$ adb connect <wsa-ip:port>
- Make sure ADB connect successfully
$ adb devices
List of devices attached
172.19.99.153:5555 device
I'll follow tutorial on ReactNative.dev
# Assuming that you have Node 12 LTS or greater installed, you can use npm to install the Expo CLI command line utility
$ sudo npm install -g expo-cli
# Then run the following commands to create a new React Native project called "AwesomeProject"
$ expo init AwesomeProject
cd AwesomeProject
$ npm start # you can also use: expo start
This is a local address and will only be visible to applications running on Windows (NOT WSL).
The IP address option is no longer present in WSA settings (this may have been part of some recent update, because I definitely had the option to copy the public IP address a while ago):
I honestly don't know where to find the exposed IP address that I can connect to from within WSL2. Anybody else facing this?