I have local VM (OS centos 7) running on my laptop (OS windows). There is a server running on the VM at ip address localhost:xxxx where xxxx is the port number. Now I want to browse to this ip address on my android phone like browsing any other website.
I have tried using adb library and connecting the android phone to the VM via USB cable and following the answered question in that link
[https://stackoverflow.com/questions/4779963/how-can-i-access-my-localhost-from-my-android-device]
However, my adb version is 1.0.31 which doesn't support the command adb reverse tcp:4000 tcp:4000
Then I tried updating adb version using yum update adb
but it states that adb is up to date.
Finally, I thought about installing android studio to install the updated adb , but the VM is already too slow and drains the laptop RAM, hence the android studio will slow the VM furthermore.