Skip to content

skywire on android via termux

Moses Narrow edited this page Mar 14, 2023 · 3 revisions

Skywire can be compiled from source on android via termux.

While the VPN requires root permissions, the socks5 proxy works well and can be configured per the application.

first, install termux from the play store

It is typical to launch termux and update at this point with pkg update ; pkg upgrade however, the default package repositories may cause this update to hang.

To fix this, copy the following commands to termux

rm $PREFIX/etc/apt/sources.list.d/*
echo "deb https://packages.termux.dev/apt/termux-main/ stable main
deb https://packages.termux.dev/apt/termux-root/ root stable
deb https://packages.termux.dev/apt/termux-x11/ x11 main
" tee $PREFIX/etc/apt/sources.list
pkg update
pkg upgrade

next, install the dependencies and clone / compile skywire

pkg install git golang make
git clone https://github.com/skycoin/skywire
cd skywire
git checkout develop
make build

When that has completed, skywire has been compiled.

to run skywire, create a config and run the visor. In this example, the config is not persisted or written to disk, but simply exists in memory

./skywire-cli config gen -birxn --autoconn | ./skywire-visor -n --loglvl debug

now, open another terminal by swiping right from the left edge of the screen and tapping new terminal

first, stop the socks server, you want to use the client instead

./skywire-cli visor app stop skysocks

Next, select a key from the service discovery, you can also filter by country. This process will be further automated with cli commands in the future

sd.skycoin.com/api/services?type=proxy

sd.skycoin.com/api/services?type=proxy&country=US

optionally, create a dmsg transport to the selected key

./skywire-cli visor tp add -t dmsg <public-key>

finally, start the socks5 proxy

./skywire-cli skysocksc start --pk <public-key>

the proxy is now serving on 127.0.0.1:1080

To configure, for example, telegram to use the proxy

open the main menu to access the settings menu

image

select advanced settings

image

connection type

image

edit the proxy as follows

image

save the setting and close the menu

image

PLEASE NOTE it is possible to set a proxy in the android connection settings ; this will not work for using a locally running skywire instance. Only external servers can be configured there.

Clone this wiki locally