termux

Opening android ports

I'm trying to open ports on android 8, but I don't know how to do it.I want to run an ssh server in termux(so that I can connect from outside).

How to open a port for apache in termux

I want to make a host on the phone, but I don't know how to open the port for apache

How do I connect the module for the wi-fi adapter to Termux? And is it possible?

The task is to rebuild the module for the usb wi-fi adapter for the device and connect it to the kernel via termux, but the f ... mand not found, Google did not help. Has anyone had any experience with such manipulations? I will be glad to have any ideas.