Great information, thanks again for the suggestions. I’ll break them down:
- The server has no public IPv4 address (if your internet service provider only assigns you a public IPv6 address, you cannot use direct Plex remote access at all)
The server has appropriate ports forwarded to it from the public IPv4 address. This is what allows relayed connections and other remote clients to connect. Plex remote access works properly.
- There are issues with the domain name resolution of the
.direct TLD. Your server is contacted by clients with its own FQDN (xxx.yyy.plex.direct), which it gets assigned upon server start. Many ISP-provided DNS server mess this up. This can be rectified by using other DNS servers, Google’s for instance (8.8.8.8)
I have a local nameserver on which bind is configured properly. I see some .direct TLD queries coming from the Plex client:
Dec 31 11:56:07 fw01.home.dtrainor.net named[21367]: client 10.16.16.150#34663 (192-168-200-1.7e87a4bc07f042f098336737be9e0c09.plex.direct): query: 192-168-200-1.7e87a4bc07f042f098336737be9e0c09.plex.direct IN A + (10.16.16.1)
Dec 31 11:56:07 fw01.home.dtrainor.net named[21367]: client 10.16.16.150#43972 (70-176-219-102.7e87a4bc07f042f098336737be9e0c09.plex.direct): query: 70-176-219-102.7e87a4bc07f042f098336737be9e0c09.plex.direct IN A + (10.16.16.1)
Dec 31 11:56:07 fw01.home.dtrainor.net named[21367]: client 10.16.16.150#56094 (10-10-50-200.d4c62cb492c04767905eff0876ea7edf.plex.direct): query: 10-10-50-200.d4c62cb492c04767905eff0876ea7edf.plex.direct IN A + (10.16.16.1)
Dec 31 11:56:07 fw01.home.dtrainor.net named[21367]: client 10.16.16.150#55962 (192-168-0-217.e89f4f93243b4c27977f0e48e7a94e17.plex.direct): query: 192-168-0-217.e89f4f93243b4c27977f0e48e7a94e17.plex.direct IN A + (10.16.16.1)
Dec 31 11:56:07 fw01.home.dtrainor.net named[21367]: client 10.16.16.150#56927 (72-222-200-30.e89f4f93243b4c27977f0e48e7a94e17.plex.direct): query: 72-222-200-30.e89f4f93243b4c27977f0e48e7a94e17.plex.direct IN A + (10.16.16.1)
Dec 31 11:56:17 fw01.home.dtrainor.net named[21367]: client 10.16.16.150#48530 (184-105-148-96.7e87a4bc07f042f098336737be9e0c09.plex.direct): query: 184-105-148-96.7e87a4bc07f042f098336737be9e0c09.plex.direct IN A + (10.16.16.1)
Dec 31 11:56:17 fw01.home.dtrainor.net named[21367]: client 10.16.16.150#55371 (192-168-99-10.f6b5afa0e8c346f3902766d46302317b.plex.direct): query: 192-168-99-10.f6b5afa0e8c346f3902766d46302317b.plex.direct IN A + (10.16.16.1)
I’ve seen your other replies[0][1] on the forum that describe the .direct TLD being incorrectly configured and while that’s great, it’s the technical detail of such that I’m interested in learning more about. None of the hostnames on the .direct TLD that the Plex client queries, are A RRs that represent anything on my network, with the exception of the external IPv4 address. Even then, that does not help, because the only reason that would be used is for relayed connections which I’m trying to avoid in the first place. Even if I had a specific zone configured for the “plex.direct” domain, it looks as if the Plex client wouldn’t even be using the correct server address because it looks like it’s querying for made-up addresses (with the exception of the external IPv4 address.
- If you also cannot connect directly to your server in your own local network, it may be also have to do with your router. see PMS using wrong IP for a quick test and some things you can try.
Properly configuring my router is the exact reason I’m making this post. I’m looking for detailed information on what the proper configuration is to make sure my configuration is suitable. I believe it to be, though I need detailed information on discovery to confirm this.
I can connect directly on the same network on which the Plex server is located. I cannot connect directly to the Plex server when the connection comes from another VLAN on a different RFC1918 IPv4 address space. My firewall and router are configured sufficiently to forward this traffic.
- If your server is running in a virtualized environment (Docker et al.) it could be indeed a double-NAT issue.
Baremetal, as indicated earlier double-nat is not the issue here. The issue is Plex behaving unexpectedly.
- If your local network has more than one router (or any other device which performs NAT [even some PowerLAN bridges do it], it could be a double-NAT issue).
I have no indication that NAT, or even double-NAT, are the culprits.
- If your router is isolating the ‘wired’ from the ‘wireless’ portion of your local network, your local client can also have difficulty to reach the server directly.
I know
that’s why I’m making this post about the technical details of how local discovery works…
[0] Fully accessible but indirect connection
[1] Why does my direct connection keep failing? - #3 by plexpants