Skip to content

Instantly share code, notes, and snippets.

@Wellers0n
Created June 26, 2019 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wellers0n/73fd7233ff6dbe02b4af2800c773f902 to your computer and use it in GitHub Desktop.
Save Wellers0n/73fd7233ff6dbe02b4af2800c773f902 to your computer and use it in GitHub Desktop.
reverse adb
#!/usr/bin/env bash
# packager
adb reverse tcp:8081 tcp:8081
adb -d reverse tcp:8081 tcp:8081
adb -e reverse tcp:8081 tcp:8081
echo "🚧 React Native Packager Redirected 🚧"
# GraphQL Api
adb reverse tcp:5000 tcp:5000
adb -d reverse tcp:5000 tcp:5000
adb -e reverse tcp:5000 tcp:5000
echo "🚀 GraphQL Api Redirected 🚀"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment