set up forwarding of host port 6100 to device port 7100
adb forward tcp:6100 tcp:7100
When your device is trying to access local port 3000, that request will be routed to your laptop’s port 3000.
adb reverse tcp:3000 tcp:3000
References
https://blog.usejournal.com/adb-port-forwarding-and-reversing-d2bc71835d43