By default, Android is set to Charging Mode when it detects a USB cable has been plugged in but we can change this to default to MTP Mode, PTP Mode, MIDI, or...
In order to forward port, you need to do Destination Address Translation ( DNAT ) using Linux kernel's builtin firewall userspace tool iptables . First make sure that kernel is configured to forward internet traffic (already set when hotspot is ON)

Port Forwarding Android Ports With netcat. Compiling netcat for Android was the way I decided to go, its only known to be the swiss-army knife of networking. The Android source code contains a limited version of nc which can be compiled by the simple make nc...

Android supplementary services. Selecting call forwarding on an Android device.If your Android mobile device doesnt support call forwarding natively, you can set call forwarding options at the carrier level. To do this, youll do the following within your phones dialer

Can I port forward on Android? Port forwarding is possible only if your ISP allows you to do so.What ports does Android use? Android smartphones have used the USB Micro-B connector for both data transfer and charging almost exclusively since their introduction in 2008.
But disabling wireless charging altogether isnt possible, just as preventing your phone from charging when you plug it in isnt possible. Its an electrical inevitability. How to use wireless charging with your Android phone. iPhone 13 Pro on charging mat.