Port forwarding to run web services
Last updated
Last updated
Read time: 4 minutes
Q Blocks instances offer support for running web services with public access. This is enabled through port forwarding.
A web service can be forwarded at an open port of the Q Blocks instance and then accessed publicly.
๐ Due to security reasons, all ports are not open. Only some random ports can be opened.
The pre-configured open ports of your instance can be viewed as follows:
Go to your Active Instances Page.
Click on the dropdown icon on your instance row to view instance info.
Extra Ports section displays the open port as seen below:
๐๏ธ Copy the Extra port and Host values
As an example, let us run Tensorboard web service in our instance. Tensorboard is a Machine learning experiment tracking software that can be launched as a web service and then accessed in your browser.
Run the following commands in your instanceโs terminal:
Replace EXTRA_PORT with the Port number copied above.
This should launch the service and it should be accessible at the following URL:
The same way, you can launch any web service in your instance at a provided port.
Please see:
Any application running at a forwarded port is accessible to the public. Right precautions with auth token or password access must be implemented to secure the applications.
If you still face issues setting it up then don't hesitate to reach out to us at: support@qblocks.cloud