Skip to content

Instantly share code, notes, and snippets.

@isaax2
Forked from icerda/android-wifi-development.sh
Last active December 7, 2020 22:27
Show Gist options
  • Save isaax2/2e5da328ffb596519fa1bb3c9bae15aa to your computer and use it in GitHub Desktop.
Save isaax2/2e5da328ffb596519fa1bb3c9bae15aa to your computer and use it in GitHub Desktop.
Setup wifi for android development
#!/usr/bin/env bash
#Set Listener on the phone
adb tcpip 5555
DEVICE_IP=192.168.137.65
#Connect to the phone
#adb connect <IP address of your device>:5555
adb connect $DEVICE_IP:5555
#React Native Guide
#adb -s <device name> reverse tcp:8081 tcp:8081
adb -s $DEVICE_IP reverse tcp:8081 tcp:8081
#Reactotron
adb reverse tcp:9090 tcp:9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment