Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Bind to specific interface only?

kanthonykanthony Members, Plex Pass Posts: 1 Plex Pass
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.
«134

Comments

  • tobiashietatobiashieta Plex Dev Team Members, Plex Employee, Plex Pass, Plex Ninja Posts: 5,524 Plex Employee
    Not possible right now, but it's a feature we want to implement at some point.

    Follow me on twitter @tobiashieta or G+

  • mauirixxxmauirixxx Members, Plex Pass Posts: 155 Plex Pass

    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
    -- mauirixxx
    Linux - Unofficial CentOS 6 install instructions - step by step!
    WIndows - Easy edit your hosts file to resolve localhost to 127.0.0.1 - only needed if you time out trying to manage your Plex server locally in Windows Vista / 7 and http://localhost:32400/manage keeps timing out!

    TV Shows getting listed wrong?
    Verify your files are named per the Plex Media Server guide - if they're not, use FileBot to quickly and painlessly rename your media into a format Plex Media Server recommends!
  • EddieAEddieA Members Posts: 363 ✭✭✭
    Is there any way to force which IP Plex announces to a servers request.
    <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.
  • aqntbghdaqntbghd Members Posts: 275 ✭✭

    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 ;) ) ?

  • aqntbghdaqntbghd Members Posts: 275 ✭✭
    Tobias Hieta wrote on August 20 2012, 6:13 AM: »

    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() ;) )? 

    Thanks,

  • tkimball83tkimball83 Members, Plex Pass Posts: 93 Plex Pass
    +1 for this!
  • ak_hepcatak_hepcat Members, Plex Pass Posts: 2 Plex Pass

    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
    Apr 02, 2014 20:30:45 [0x7f844ffff700] DEBUG - MyPlex: Got public IP from 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/, 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/, 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
    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"?>
    <MediaContainer size="4">
    <Server name="mediatomb" host="" localAddresses="192.168.1.3,10.0.3.1" machineIdentifier="xxxxxxxxxxxxxxxxxxxxxx" version="0.9.9.7.429-f80a8d6" />
    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
    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.

     

    Do you see the problem?   It's not using the public IP, but the *both*  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,  the Plex/Web  can't connect,

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

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

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

  • ak_hepcatak_hepcat Members, Plex Pass Posts: 2 Plex Pass
    edited April 2014

    And as a follow-up,  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 <mss 1460,sackOK,timestamp 3757151 0,nop,wscale 6>
    21:06:00.113418 IP 166.23.166.175.51092 > 10.0.3.1.32400: S 3115488892:3115488892(0) win 14600 <mss 1460,sackOK,timestamp 3757181 0,nop,wscale 6>
    21:06:00.150531 IP 166.23.166.175.51095 > 10.0.3.1.32400: S 4208510729:4208510729(0) win 14600 <mss 1460,sackOK,timestamp 3757185 0,nop,wscale 6>
    21:06:00.167222 IP 166.23.166.175.51097 > 10.0.3.1.32400: S 3952671262:3952671262(0) win 14600 <mss 1460,sackOK,timestamp 3757187 0,nop,wscale 6>
    21:06:00.806272 IP 166.23.166.175.51090 > 10.0.3.1.32400: S 3384245077:3384245077(0) win 14600 <mss 1460,sackOK,timestamp 3757251 0,nop,wscale 6>
    21:06:01.106197 IP 166.23.166.175.51092 > 10.0.3.1.32400: S 3115488892:3115488892(0) win 14600 <mss 1460,sackOK,timestamp 3757281 0,nop,wscale 6>
    21:06:01.146147 IP 166.23.166.175.51095 > 10.0.3.1.32400: S 4208510729:4208510729(0) win 14600 <mss 1460,sackOK,timestamp 3757285 0,nop,wscale 6>
    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)   and attempting to get connections via that.   This is wrong and bad and broken!

  • ckb001ckb001 Members Posts: 1

    Another vote from me.  It's cracking that I can sign into MyPlex and then say "Hey, discover my Plex servers please".  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.  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).

  • amb1s1amb1s1 Members, Plex Pass Posts: 17 Plex Pass

    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.

  • JasonMeudtJasonMeudt Members, Plex Pass Posts: 217 Plex Pass
    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
    • Intel Core i7 4790 @ 3.6 Mhz (Plex Server)
    • Netgear R7000 (Tomato by Toastman firmware)
    • 2x Google Chromecast V2 (Media Player)
    • 3x Roku (Media Player)
    • 10 TB of Storage Space
  • tpmullantpmullan Members, Plex Pass Posts: 14 Plex Pass

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

  • peefpeef Members, Plex Pass Posts: 21 Plex Pass

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

  • RyqiemRyqiem Members, Plex Pass Posts: 7 Plex Pass

    Please take a look at this devs :)

  • tkimball83tkimball83 Members, Plex Pass Posts: 93 Plex Pass
    +1
  • yonatan.perryyonatan.perry Members, Plex Pass Posts: 1 Plex Pass

    +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.

  • omgimdrunkomgimdrunk Members Posts: 3 ✭✭

    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  # 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.

  • laptopfreek0laptopfreek0 Members, Plex Pass Posts: 7 Plex Pass

    +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.

  • aqntbghdaqntbghd Members Posts: 275 ✭✭

    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.

  • ben_jamin_sben_jamin_s Members, Plex Pass Posts: 6 Plex Pass

    I'll pile on here as well... I first noticed the problem with multiple IPs when I was trying to get the Xbox 360 app to work  (  https://forums.plex.tv/topic/126286-plex-server-unavailable/?p=774428  ).

    We really need a way to bind to a specific IP/interface. 

«134
Sign In or Register to comment.