INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Client connection through Reverse Proxy  (Read 782 times)

docles

  • Recent member
  • *
  • Posts: 45
Client connection through Reverse Proxy
« on: April 08, 2025, 05:00:16 pm »

Hi to all,
I run my JRiver MC 32 on an homelab.
Locally it works flawlessly.

I put a reverse proxy in front of the internal server.
I have a specific domain name music.xxxx.com to address the music from outside, let's encrypt certificate and the reverse proxy set up.

From outside, I can reach the server through music.xxxx.com. This reaches the MCWS pages and music can be read.

Unfortunalty no client (JRiver on a PC or Jremote3) can connect. I use the key of the server. The issue is that it searches by ip address (my access) and not the domain music.xxxx.com. Therefore the reverse proxy is blocking.
Do you have any advice?

Thanks for the support.

Docles
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 73160
  • Where did I put my teeth?
Re: Client connection through Reverse Proxy
« Reply #1 on: April 08, 2025, 06:33:31 pm »

Your firewall needs to allow port 52199.
Logged

docles

  • Recent member
  • *
  • Posts: 45
Re: Client connection through Reverse Proxy
« Reply #2 on: April 09, 2025, 03:27:00 pm »

Hi

Thanks for your reply.

I set up ufw allowing port 52125 on the jriver server.

Doesn't work.

Anything to do on the reverse proxy ?

Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5302
  • "Linux Merit Badge" Recipient
Re: Client connection through Reverse Proxy
« Reply #3 on: April 09, 2025, 03:30:03 pm »

Hi

Thanks for your reply.

I set up ufw allowing port 52125 on the jriver server.

Doesn't work.

Anything to do on the reverse proxy ?

Have you tried not using the access key and just entering your domain name into the client instead of the access key?
Logged

docles

  • Recent member
  • *
  • Posts: 45
Re: Client connection through Reverse Proxy
« Reply #4 on: April 09, 2025, 04:46:07 pm »

Hi thanks for your advice.
This is not working.

Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5302
  • "Linux Merit Badge" Recipient
Re: Client connection through Reverse Proxy
« Reply #5 on: April 09, 2025, 10:00:13 pm »

Hi thanks for your advice.
This is not working.

Can you provide a little more information about what's not working?  Did you try adding the correct port after the domain name?
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2959
Re: Client connection through Reverse Proxy
« Reply #6 on: April 10, 2025, 02:38:51 am »

I don't think you need or should have a reverse proxy. The proxy expects incoming HTTP connections containing a header which describes the URL used to get there (the domain name). This works fine for MCWS, however a regular MC connection via the access key does NOT contain the domain name, it's a direct connection to your IP address - the proxy will just drop it if you have it configured to expect a domain name/virtual host.

You just need to set up NAT on your router to forward port 52199 or 52200 to your MC machine. A reverse proxy is needed for load balancing or to handle hosting multiple domains on the same machine, which is not the case.

Your firewall needs to allow port 52125.
Isn't that just for the Engen server?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 73160
  • Where did I put my teeth?
Re: Client connection through Reverse Proxy
« Reply #7 on: April 10, 2025, 08:43:29 am »

Isn't that just for the Engen server?
My mistake.  It should have been 52199.  Corrected above.
Logged

docles

  • Recent member
  • *
  • Posts: 45
Re: Client connection through Reverse Proxy
« Reply #8 on: April 10, 2025, 09:42:51 am »

I don't think you need or should have a reverse proxy. The proxy expects incoming HTTP connections containing a header which describes the URL used to get there (the domain name). This works fine for MCWS, however a regular MC connection via the access key does NOT contain the domain name, it's a direct connection to your IP address - the proxy will just drop it if you have it configured to expect a domain name/virtual host.

You just need to set up NAT on your router to forward port 52199 or 52200 to your MC machine. A reverse proxy is needed for load balancing or to handle hosting multiple domains on the same machine, which is not the case.
Isn't that just for the Engen server?

I need a reverse proxy because I host several services aka subdomains. There is no way I can only count on port forwarding.
Logged

docles

  • Recent member
  • *
  • Posts: 45
Re: Client connection through Reverse Proxy
« Reply #9 on: April 10, 2025, 09:47:33 am »

Can you provide a little more information about what's not working?  Did you try adding the correct port after the domain name?
Yes, on the reverse proxy, I send to 52200 port on https.
I tried on 52199 on http too

The clients (JRiver on PC or JRemote on android) don't succeed to connect from outside.
I see that the JRiver is looking to the WAN IP address and not the subdomain.
I tried to enter the subdomain in the media library field. Does not accept.

Logged

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5302
  • "Linux Merit Badge" Recipient
Re: Client connection through Reverse Proxy
« Reply #10 on: April 10, 2025, 10:32:57 am »

So previously there was a plan to support fully qualified domain names (FQDN) in the apps because you can't use SSL without using a FQDN, see Hendrik's comment in this thread:  https://yabb.jriver.com/interact/index.php/topic,110982.msg767049.html#msg767049

I thought it had been implemented, but maybe that never actually happened, in which case apologies for the wild goose chase.

It would be good if the clients could actually use HTTPS.
Logged

Scobie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 757
  • Looking Busy
Re: Client connection through Reverse Proxy
« Reply #11 on: April 10, 2025, 06:41:55 pm »

Yeah RP needs the FQDN, but you could stand up a VPN between client and host? It could completely traverse the RP.
Logged

docles

  • Recent member
  • *
  • Posts: 45
Re: Client connection through Reverse Proxy
« Reply #12 on: April 11, 2025, 05:05:08 pm »

so as far as I understand, FQDN is not implemented.
Any other suggestion to sort out ?

How to request the feature for future version?

Logged
Pages: [1]   Go Up