Dynamic hostname/ports from web service like ngrok

Dynamic hostname/ports from web service like ngrok

0 vote

avatar

I use ngrok (and other similar solutions) to expose my local server behind NAT over to the internet.

The hostname and the port it allocates are dynamic.
Can we have support for dynamic hostname/ports?

As an example,
The hostname/port can be obtained from some fixed web service like google app script or aws lambda.
POST to https://script.google.com/macros/something/exec? with some auth and some POST data will return the hostname/port in the response body.
Use that hostname+port for the SSH connection from RDM.

I suggested the web service POST option because it will be more generic than hard-coded to ngrok or jprq.

All Comments (3)

avatar

Hello,

We will open a ticket to investigate if it is possible.

Best regards,

Maxime Brousseau

avatar

Thanks!

To give you some more context:

When I launch ngrok to expose my local TCP port to the internet, it gives me a random hostname (depending on region and server load) and a random port (always random).
From a wrapper script, I push that data to my google spreadsheet (via app script) and to my AWS dynamodb (via a lambda).

From my ssh client system, I read these hostname+port combos and initiate a connection to it, instead of fixed IP and port 22.

From RDM, I have to update the hostname+port manually. So, I was wondering if it is possible to automate it from RDM itself.
A single button to update all dynamic hosts will be nice; or refresh all the dynamic hosts at app start.

I would leave it to you whether you want to add host+port as a combo to the vault or separately, that can be referenced in ssh and other vault entries.

Thank you once again.

avatar

Hello,

Perfect I have added the extra information to the ticket.

We will let you know if we find a solution.

Best regards,

Maxime Brousseau