Deploying Plex Server
If you’re referring to accessing http://localhost:8888, the SSH step before it is the key.
ssh $USERNAME@$IP_ADDRESS -L 8888:localhost:32400
This connects to your Linode at $IP_ADDRESS as $USERNAME. The “-L” bit tells SSH to open port 8888 on the client (your laptop), and direct traffic through it via the SSH connection, and send it to “localhost:32400” on the server (i.e. your Linode.)
So you’re absolutely right that you’re connecting to port 8888 on your local laptop, but the magic of the port forwarding in SSH means you’re actually talking to your Linode on port 32400.
Hope this helps :)