(TCP Socket forwarder app)
Available in webstore: https://chrome.google.com/webstore/detail/connection-forwarder/ahaijnonphgkgnkbklchdhclailflinn
I made this app so that I could ssh into termux running on a chromebook without developer mode. Maybe you find it useful for something else.
Update 3: Updated the build system
Update 2: It's useful again as ports are not automatically forwarded for crostini (linux) containers
Update 1: Android container apps automatically forward listening ports to the LAN since Chrome 63.
Use case 1: make termux sshd available on the LAN, not just on the local chromebook.
Use case 2: make crostini container service available on LAN or localhost
Use case 3: make an android-based development server (such as apache or php etc) available on the local network
Use case 4: (??) Let me know kyle@graehlarts.com or create an issue
Background info: android runs on a chromebook on a NAT interface that is not exposed directly on the LAN. Certain services are forwarded (such as mDNS). Everything else, not. This app lets you setup simple forwarding rules to have certain ports get forwarded to the internal android interface.
The nice react auto reload tools don't work very well in the chrome app context (which disallow eval, inline scripts, external resources (loaded via URL). Basically all app code must be statically present in the app directory at launch time.
git clone (this repository)
cd connection-forwarder/react-ui; npm install; npm run watch
( or npm run build
)chrome://extensions
, check the developer mode box, click load unpacked extension, select the "app"
folder in this repository.cd connection-forwarder/app
../scripts/package.sh
(you may need to apt install zip
)MIT