You can use M-. instead of $_ to insert last param of last command. You can also access older commands' param by repeated M-. just like you would do for inserting past commands with up arrow or C-p
You could also use syncthing through termux
you can bind to a specific interface in nicotine