Linux server set port to destination

Hello!

I searched in google but i can’t draft correctly.
I want to change x.x.x.x:32400 to x.x.x.x/plex.
The question is:
How I can change port to destination in linux?

My device: Raspberry pi 4
OS: Raspbian

Thank you!

port 32400 is fixed. This is the internal application port.

You may change the external port for remote access but that is all.

Okay I did it myself.

If anyone want to use it replace the YOUR-SERVER-IP to destination server ip :slight_smile:

Code:

sudo apt install apache2 -y
cd /var/www/html
sudo mkdir plex
cd plex
sudo nano index.html

Copy paste this:

<!DOCTYPE html>
  <html>
          <head>
                  <title>Plex media server</title>
         </head>
          <body>
                  <iframe src="http://YOUR-SERVER-IP:32400" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">
                          Your browser doesn't support iframes
                  </iframe>
          </body>
  </html>

After than copy paste press CTRL+O (save) and CTRL+X (exit)

And you can use your plex in browser more easyer: http://YOUR-SERVER-IP/plex

Using an iFrame is actually quite a nasty approach.
If you really need to dig into hiding plex through a different handle you might want to look into the mod_proxy package that should come pre-installed (but probably disabled by default) with your Apache installation.
https://httpd.apache.org/docs/2.4/mod/mod_proxy.html

Disclaimer: I haven’t used this myself and as stated by Chuck this kind of activities is definitely not supported from Plex‘ side.
There’s probably more to it than establishing a pure forward_proxy configuration… then on the other hand… your iFrame won’t be doing much more as well

WOW!
It’s nice :slight_smile:
More elegant than my solution :Đ
If I had a little free time, I’ll make an easy2use code for that.
Thank you very much!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.