You can change the admin endpoint which defaults to localhost:2019 to 0.0.0.0:2019 to accept requests from outside, but be aware that this also introduces security risks if some bad actor has access to this API.
Another approach would be to make use of SSH tunnels instead – I wrote about this here: