# Local network unable to connect securely when using browser

**URL:** <https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [May 23, 2023, 6:34am UTC](https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950 "2023-05-23T06:34:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunoxus](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@lunoxus](https://forums.plex.tv/u/lunoxus)\
**Post date:** [May 23, 2023, 6:34am UTC](https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950/1 "2023-05-23T06:34:42Z")

</div>

Server Version#: Version 1.32.1.6999  
Player Version#: Version 4.100.1

I’ve got a bit of an interesting issue here.

## What doesn’t work

Trying to connect to my local Plex server via [app.plex.tv](http://app.plex.tv) through a browser or the desktop apps for Win/MacOS fail 95% of the time with the “Unable to connect to x securely” error. In the 5% chance it does go through, the success is intermittent, and **Plex will show that it’s streaming to my router’s WAN (not LAN!!)**

This WAN IP is the same regardless of which device I use.

## What works

Connecting and streaming over iOS and AppleTV work great. Connecting from a different network (remote streaming) is also perfect. And connecting over the IP address of the server (ip-address:32400) works as well. All of these will show that it’s streaming to LAN.

I also set up a reverse proxy and routed to a subdomain - that works too.

## My Setup

I have the server linked to my eero via Ethernet. All other devices are connected via wifi to the eero. The modem has wifi disabled for good measure.

I’ve done a ton of troubleshooting for the basics (UPnP on, port forwarding 32400 on router + modem, no VPN, no DNS software, etc.)

I’ve toggled on/off remote access, and encountered the same bug.

Secure connections is set to: Preferred

Has anyone else experienced this issue before, or has any ideas on where to begin debugging?

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [May 23, 2023, 7:04am UTC](https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950/2 "2023-05-23T07:04:37Z")

</div>

It is Linux or Docker on linux box? If docker have you told it to use the host networking?

---

<div class="post-metadata">

**Author:** ![lunoxus](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@lunoxus](https://forums.plex.tv/u/lunoxus)\
**Post date:** [May 23, 2023, 8:21am UTC](https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950/3 "2023-05-23T08:21:55Z")

</div>

Thanks for the quick response.

I did some investigation, the tl;dr is:

- While on local, plex in browser pings two IPs: docker subnet, which fails obviously, and public ip, which only resolves 5% of the time. The issue is exclusive to the plex app as other appsare connectable.
- Outside of local, public ip resolves 100% of the time.

Upon further investigation, it appears that I am indeed using default networking (bridged). Switching it out to host networking resolved the issue.

> **[GitHub - plexinc/pms-docker: Plex Media Server Docker repo, for all your PMS...](https://github.com/plexinc/pms-docker#host-networking)**
>
> Plex Media Server Docker repo, for all your PMS docker needs. - GitHub - plexinc/pms-docker: Plex Media Server Docker repo, for all your PMS docker needs.

Thanks!

---

<div class="post-metadata">

**Author:** ![lunoxus](https://avatars.discourse-cdn.com/v4/letter/l/278dde/32.png) [@lunoxus](https://forums.plex.tv/u/lunoxus)\
**Post date:** [May 25, 2023, 4:47am UTC](https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950/4 "2023-05-25T04:47:03Z")

</div>

Following up on this again - is there any way to purge Plex of cached addresses (or at least, I think it’s cached)? It looks like it is still occasionally pinging an internal docker subnet (172.x) and internal (10.x), which would of course fail to resolve.

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [May 26, 2023, 6:47pm UTC](https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950/5 "2023-05-26T18:47:57Z")

</div>

I am trying to see if one of our backend guys purge any old IP addresses associated with your server record

---

<div class="post-metadata">

**Author:** ![BigWheel](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigwheel/32/78783_2.png) [@BigWheel](https://forums.plex.tv/u/BigWheel)\
**Post date:** [May 26, 2023, 7:01pm UTC](https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950/6 "2023-05-26T19:01:30Z")

</div>

This done. can you try again. Might need to restart server.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [August 24, 2023, 7:02pm UTC](https://forums.plex.tv/t/local-network-unable-to-connect-securely-when-using-browser/841950/7 "2023-08-24T19:02:12Z")

</div>

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