Port-forwarding to your Android device with adb
This may not be necessary if you're able to i.e. bind to the 0.0.0.0 interface, but sometimes you need to port-forward something running locally on a machine.
Once you've set up adb over the network, you can then run i.e.
adb reverse tcp:3333 tcp:3333