Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one open a tensorboard port in Linux?

I have some tensorboard data and I want my server to let me see the data. I don't want to have to send the tensorboard data files to my computer, so it would be ideal if I can just access them remotely. How does one do that? I would assume that the server would just host it as a normal website? What are the Tensorboard commands for this?

I know that locally one can do:

tensorboard --logdir=path/to/log-directory

and then go to the browser to do:

http://localhost:6006/

but is it possible to the equivalent from a server and then just read the data in my local browser/computer from the server?

like image 643
Charlie Parker Avatar asked May 07 '17 22:05

Charlie Parker


1 Answers

Assuming that there is no firewall preventing access to port 6006 from the outside, and that your server's address is server.example.com you should be able to simply type http://server.example.com:6006 into your browser and have it work.

In case of a restrictive firewall, tunneling the tensorboard port over SSH using Local Port Forwarding is a good approach (this is also more secure than opening random ports publicly). When logging in to your server, you could type (for instance):

ssh -L 12345:localhost:6006 server.example.com

After that, start tensorboard on the server as usual, and you will be able to access it at http://localhost:12345 in your browser.

like image 56
mvoelske Avatar answered Sep 30 '22 14:09

mvoelske