With your android device connected, you can use adb reverse to grant your device access to local host running on your computer.
adb reverse
See this article for more info.