# Bind to specific interface only?

**URL:** <https://forums.plex.tv/t/bind-to-specific-interface-only/20146>\
**Category:** General Discussions\
**Created:** [August 16, 2012, 2:07am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146 "2012-08-16T02:07:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanthony](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@kanthony](https://forums.plex.tv/u/kanthony)\
**Post date:** [August 16, 2012, 2:07am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/1 "2012-08-16T02:07:27Z")

</div>

Is there a way to have PMS bind to only a specific interface and not 0.0.0.0? I’ve been digging a bit and can’t find a configuration to allow this.

---

<div class="post-metadata">

**Author:** ![tobiashieta](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tobiashieta/32/82153_2.png) [@tobiashieta](https://forums.plex.tv/u/tobiashieta)\
**Post date:** [August 20, 2012, 6:13am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/2 "2012-08-20T06:13:21Z")

</div>

Not possible right now, but it’s a feature we want to implement at some point.

---

<div class="post-metadata">

**Author:** ![mauirixxx](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mauirixxx/32/109244_2.png) [@mauirixxx](https://forums.plex.tv/u/mauirixxx)\
**Post date:** [August 20, 2012, 6:52am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/3 "2012-08-20T06:52:30Z")

</div>

> [@](#):
>
> Not possible right now, but it's a feature we want to implement at some point.

  
  
Can't wait for this to happen, I have a Plex server listening on both a private and public IP, but when the wifi clients connect to it, they connect to the public IP when signed in via MyPlex.  
  
Not that it affects performance any on \*my\* setup, but still ... can't wait :D

---

<div class="post-metadata">

**Author:** ![EddieA](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@EddieA](https://forums.plex.tv/u/EddieA)\
**Post date:** [August 22, 2012, 6:26pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/4 "2012-08-22T18:26:17Z")

</div>

Is there any way to force which IP Plex announces to a servers request.

```auto

<MediaContainer size="1"><Server name="The-Vault" host="98.148.124.xx" address="98.148.124.xx" port="32400" machineIdentifier="aee7c537f7f027b4783ba7765ec8fde1f7d40f0d" version="0.9.6.6.198-7deaf26"/></MediaContainer>

```

  
That IP is the WAN side of the box, not the LAN.  
  
Cheers.

---

<div class="post-metadata">

**Author:** ![aqntbghd](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/aqntbghd/32/1605_2.png) [@aqntbghd](https://forums.plex.tv/u/aqntbghd)\
**Post date:** [February 14, 2014, 3:44pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/5 "2014-02-14T15:44:26Z")

</div>

If i cannot constrain Plex to bind to specific interfaces, does anyone have a set of iptables firewall rules so i can prevent the bad guys on one interface of my machine to connect to my plex server running on a linux router (read my kids ;) ) ?

---

<div class="post-metadata">

**Author:** ![aqntbghd](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/aqntbghd/32/1605_2.png) [@aqntbghd](https://forums.plex.tv/u/aqntbghd)\
**Post date:** [March 31, 2014, 10:17am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/6 "2014-03-31T10:17:37Z")

</div>

> Not possible right now, but it's a feature we want to implement at some point.

So there was intention to add this feature in 2012, where are we now in 2014 ? :) is it implemented or is it still an intention ? can we help to code it (i know how to use bind() ;) )?&nbsp;

Thanks,

---

<div class="post-metadata">

**Author:** ![tod9f0bs1kcdw](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tod9f0bs1kcdw](https://forums.plex.tv/u/tod9f0bs1kcdw)\
**Post date:** [April 2, 2014, 2:48am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/7 "2014-04-02T02:48:12Z")

</div>

+1 for this!

---

<div class="post-metadata">

**Author:** ![ak\_hepcat](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@ak\_hepcat](https://forums.plex.tv/u/ak_hepcat)\
**Post date:** [April 3, 2014, 4:44am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/8 "2014-04-03T04:44:02Z")

</div>

Here's why this is sorely needed:

Apr 02, 2014 20:30:41 [0x7f844f7fe700] DEBUG - Request: [::ffff:192.168.1.4:60076] GET /myplex/account (3 live)  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Initialized UPnP, result: Not an IGD device  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - HTTP requesting to: [http://plex.tv/pms/:/ip](http://plex.tv/pms/:/ip)  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - MyPlex: Got public IP from [http://plex.tv](http://plex.tv): 166.23.166.175   
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Obtained public address of 166.23.166.175 (failed: 0 myPlex: 1).  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Checking for change in address: old was 166.23.166.175 and new is 166.23.166.175.  
Apr 02, 2014 20:30:45 [0x7f844ffff700] WARN - NAT: Not unmapping ports via UPnP, state=65537, controlURL=[http://192.168.1.3:32469/](http://192.168.1.3:32469/), serviceType=   
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Unmapping ports failed the first way, switching.  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Switching to NAT-PMP strategy.  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Unmapping port via NAT-PMP  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Finished NAT-PMP request, result was: Not Supported by gateway  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Unmapped port via NAT-PMP (success=0).  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Mapping port via NAT-PMP  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Finished NAT-PMP request, result was: Not Supported by gateway  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Mapped ports (success=0) private: 0 public 0  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Mapping ports failed the first way, switching.  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - NAT: Switching to UPnP strategy.  
Apr 02, 2014 20:30:45 [0x7f844ffff700] WARN - NAT: Not mapping ports via UPnP, state=65537, controlURL=[http://192.168.1.3:32469/](http://192.168.1.3:32469/), serviceType=   
Apr 02, 2014 20:30:45 [0x7f844ffff700] ERROR - NAT: Mapping failed (Not an IGD device)  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - It took 0.000000 sec to serialize a list with 4 elements.  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - MyPlex: Sending Server Info to myPlex (user=ak\_hepcat, ip=, port=0)  
Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - HTTP requesting to: [https://plex.tv/servers.xml?auth\_token=xxxxxxxxxxxxxxxxxxxx](https://plex.tv/servers.xml?auth_token=xxxxxxxxxxxxxxxxxxxx)  
Apr 02, 2014 20:30:46 [0x7f844ffff700] DEBUG - MyPlex: Published Mapping State \<--- 422  
Apr 02, 2014 20:30:46 [0x7f844ffff700] WARN - MyPlex: Invalid response when mapping state (code=422):\<?xml version="1.0" encoding="UTF-8"?\>  
  
  
Apr 02, 2014 20:30:46 [0x7f844ffff700] ERROR - Error parsing content.  
Apr 02, 2014 20:30:46 [0x7f844ffff700] ERROR - MyPlex: Error parsing XML:  
Apr 02, 2014 20:30:46 [0x7f844ffff700] DEBUG - MyPlex: Updating device connections.  
Apr 02, 2014 20:30:46 [0x7f844ffff700] DEBUG - HTTP requesting to: [https://plex.tv/devices/xxxxxxxxxxxx?Connection[][uri]=http://192.168.1.3:32400&Connection[][uri]=http://10.0.3.1:32400&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx](https://plex.tv/devices/xxxxxxxxxxxx?Connection%5B%5D%5Buri%5D=http://192.168.1.3:32400&Connection%5B%5D%5Buri%5D=http://10.0.3.1:32400&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx)  
Apr 02, 2014 20:30:46 [0x7f844ffff700] DEBUG - NAT: Updating mapping complete in thread 0x7f83fd26f400.  
Apr 02, 2014 20:30:46 [0x7f844ffff700] DEBUG - NAT: Deleting puncher.  
Apr 02, 2014 20:30:46 [0x7f844ffff700] DEBUG - NAT: Deleting NATUPnPPuncher.  
Apr 02, 2014 20:30:46 [0x7f844ffff700] DEBUG - NAT: Deleting NATPmPPuncher.  
  
&nbsp;

Do you see the problem?&nbsp;&nbsp; It's not using the public IP, but the \*both\*&nbsp; of the internal IP addresses on the system.

Yes, I have manually 'punched' a whole through, and although it shows up on the plex 'servers' page,&nbsp; the Plex/Web&nbsp; can't connect,

giving the dreaded "myPlex could not reach your server"&nbsp; error....&nbsp;&nbsp; even though it's on the same broadcast domain!

So, please, please, please.&nbsp;&nbsp; Allow us to&nbsp; either&nbsp; 1) specify the bind interface&nbsp;&nbsp; or&nbsp;&nbsp; 2)&nbsp; specify the bind IP address

Oh.. what's the status of&nbsp; IPv6, while you're answering questions?&nbsp;&nbsp;&nbsp; Because i've got native IPv6 to the server, which it could easily use....

---

<div class="post-metadata">

**Author:** ![ak\_hepcat](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@ak\_hepcat](https://forums.plex.tv/u/ak_hepcat)\
**Post date:** [April 3, 2014, 5:10am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/9 "2014-04-03T05:10:22Z")

</div>

And as a follow-up,&nbsp; here's what's happening:

21:06:00.055666 IP 166.23.166.175.51090 \> 10.0.3.1.32400: S 3384245077:3384245077(0) win 14600   
21:06:00.113418 IP 166.23.166.175.51092 \> 10.0.3.1.32400: S 3115488892:3115488892(0) win 14600   
21:06:00.150531 IP 166.23.166.175.51095 \> 10.0.3.1.32400: S 4208510729:4208510729(0) win 14600   
21:06:00.167222 IP 166.23.166.175.51097 \> 10.0.3.1.32400: S 3952671262:3952671262(0) win 14600   
21:06:00.806272 IP 166.23.166.175.51090 \> 10.0.3.1.32400: S 3384245077:3384245077(0) win 14600   
21:06:01.106197 IP 166.23.166.175.51092 \> 10.0.3.1.32400: S 3115488892:3115488892(0) win 14600   
21:06:01.146147 IP 166.23.166.175.51095 \> 10.0.3.1.32400: S 4208510729:4208510729(0) win 14600   
21:06:01.165958 IP 166.23.166.175.51097 \> 10.0.3.1.32400: S 3952671262:3952671262(0) win 14600 \<mss 1460,sackOK,timestamp 3757287 0,

Plex is using the wrong interface (one for a private virtual machine)&nbsp;&nbsp; and attempting to get connections via that.&nbsp;&nbsp; This is wrong and bad and broken!

---

<div class="post-metadata">

**Author:** ![ckb001](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@ckb001](https://forums.plex.tv/u/ckb001)\
**Post date:** [April 4, 2014, 8:48am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/10 "2014-04-04T08:48:01Z")

</div>

Another vote from me. &nbsp;It's cracking that I can sign into MyPlex and then say "Hey, discover my Plex servers please". &nbsp;It's not so fine when the most important one comes up with an IP that's impossible to get to, except for between a few VMs on a VM host. &nbsp;Then you have to delete and start again (not the end of the world, but does end up wasting a good feature the devs have already invested in for us).

---

<div class="post-metadata">

**Author:** ![amb1s1](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@amb1s1](https://forums.plex.tv/u/amb1s1)\
**Post date:** [April 8, 2014, 4:55pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/11 "2014-04-08T16:55:20Z")

</div>

Another vote for me. I use VPN in my plex media box which I can access locally, but not from the internet. If there is an option to bind to an interface will help my situation. I know that I can do split routing, but I try it without any luck.

---

<div class="post-metadata">

**Author:** ![JasonM](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jasonm/32/82413_2.png) [@JasonM](https://forums.plex.tv/u/JasonM)\
**Post date:** [April 22, 2014, 12:56pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/12 "2014-04-22T12:56:14Z")

</div>

I concur… While maybe not so easy to implement, allowing get us to bind to a manually specified IP or adapter is the answer to everyone’s problems.   
  
  
Sent from my SPH-L710 using Tapatalk

---

<div class="post-metadata">

**Author:** ![tpmullan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tpmullan/32/103542_2.png) [@tpmullan](https://forums.plex.tv/u/tpmullan)\
**Post date:** [May 6, 2014, 5:28pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/13 "2014-05-06T17:28:33Z")

</div>

This is sorely need. &nbsp;At the vary least it would be nice to be able to manually edit the ip address that plex is going to publish

---

<div class="post-metadata">

**Author:** ![peef](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@peef](https://forums.plex.tv/u/peef)\
**Post date:** [May 6, 2014, 8:42pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/14 "2014-05-06T20:42:16Z")

</div>

#1, I have 3 network interfaces on my server, and I only want PMS on one of them.

---

<div class="post-metadata">

**Author:** ![Ryqiem](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Ryqiem](https://forums.plex.tv/u/Ryqiem)\
**Post date:** [July 31, 2014, 10:33pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/15 "2014-07-31T22:33:52Z")

</div>

Please take a look at this devs :)

---

<div class="post-metadata">

**Author:** ![tod9f0bs1kcdw](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@tod9f0bs1kcdw](https://forums.plex.tv/u/tod9f0bs1kcdw)\
**Post date:** [August 1, 2014, 6:08am UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/16 "2014-08-01T06:08:41Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![yonatan.perry](https://avatars.discourse-cdn.com/v4/letter/y/3ec8ea/32.png) [@yonatan.perry](https://forums.plex.tv/u/yonatan.perry)\
**Post date:** [November 29, 2014, 7:48pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/17 "2014-11-29T19:48:57Z")

</div>

+1 for this feature - I also need it to bind to a specific IP address.

My use case: I have a Linux server with two IP addresses on the same NIC, one dedicated to PlexConnect (port 53, 80 and 443) in a way that won't interfere with any of my other serevr stuff, and I want the Plex server to consistently bind to the other (general purpose) IP address. I will probably work around by tweaking PlexConnect's code, but that's a bit of a hassle.

---

<div class="post-metadata">

**Author:** ![omgimdrunk](https://avatars.discourse-cdn.com/v4/letter/o/8e8cbc/32.png) [@omgimdrunk](https://forums.plex.tv/u/omgimdrunk)\
**Post date:** [November 30, 2014, 5:53pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/18 "2014-11-30T17:53:35Z")

</div>

I hope this helps but this is what I did to get the specific interface working without to much trouble

interfaces

eth0

mac: #:#:#:69

ipaddress 10.1.1.49

eth1

mac: #:#:#:70

ipaddress 10.1.1.50

1) on your router create DNS entries and assign static ips to your interfaces.

eth0

dns: plex-inside

ip:10.1.1.49

eth1

dns: plex-server

ip:10.1.1.50

2) port forward 32400 to 10.1.1.50&nbsp; # This forces all devices to eth1 on your server, by default all your server apps will use eth0

3) on any other devices if not grabing dns from your router state that plex-server is 10.1.1.50

This will allow all basic server activity such as file sync to happen on eth0, but you can have the full eth1 just for plex so it wont compeat with bandwidth or connection limits.

---

<div class="post-metadata">

**Author:** ![laptopfreek0](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@laptopfreek0](https://forums.plex.tv/u/laptopfreek0)\
**Post date:** [December 12, 2014, 4:31pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/19 "2014-12-12T16:31:20Z")

</div>

+1

I was going to bond my nics since plex runs on my nas box, and sometimes I need more then 1gbps, but the problem is when I bond it plex decides to listen on nics that don't have real ip addresses. This causes myplex to not connect. Please add an option to allow for myplex to listen on a specified nic.

---

<div class="post-metadata">

**Author:** ![aqntbghd](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/aqntbghd/32/1605_2.png) [@aqntbghd](https://forums.plex.tv/u/aqntbghd)\
**Post date:** [December 12, 2014, 4:43pm UTC](https://forums.plex.tv/t/bind-to-specific-interface-only/20146/20 "2014-12-12T16:43:28Z")

</div>

Just a quick update on that problem. As Plex people haven't fixed the root of the problem (and because i half trust the security of this software after the recent incidents), i've decided to run my plex server inside an LXC container. So plex has it's own virtual linux, bind only to that interface and i heavily firewall that on the hosting server. I can also select which machine on my LAN has access to that server.

[Next page](https://forums.plex.tv/t/bind-to-specific-interface-only/20146.md?page=2)
