Running process on a remote browser

Hello,

I work on remote machine using the ssh protocol.

I try to test a tool which is a process running on the port 5000.

tcp        0      0 0.0.0.0:5000            0.0.0.0:*               LISTEN      4386/python

Tu visualise this process, i have to launch on http://0.0.0.0:5000/ on the browser.
My question: how can i access to the remote browser or how can link it with my local browser ?

Thanks a lot for help.
Best Regards.

There really isn't a concept such a remote browser. If you are in a browser you are local (unless you are launch a browser from a machine and shoot the display to a different machine like in X windows). So, if you do http://127.0.0.1:5000 you are connecting to the local machine and hopefully whatever is listening on port 5000. Presumably this dameon understands http. In this case your browser process is on the same machine as the process listening on port 5000. You could also substitute 127.0.0.1 for the ip address of the interface. Let's say you are on a machine with IP address 9.9.124.3, then http://9.9.124.3:5000 is similar with http://127.0.0.1 (slight difference in that you are going through a different inteface, loopback versus whatever interface is on
9.9.124.3. Suppose the server is on 9.9.124.133 (different than the address of the machine where you are running your browser.
http://9.9.124.133:5000 means that you are connecting to a remote server. I think you are missing the basic concept here.

1 Like

Yiou can tunnel the local browser to the remote host, too, usung ssh.

1 Like

I stand corrected. Didn't think about tunneling.

1 Like