Jump to content

Access 2 Media Servers?


Go to solution Solved by pir8radio,

Recommended Posts

MrGamecase
Posted

Hi All,

 

i have 2 different subnets connected via a PFSense Router to a common external ip from my IP...

 

AKA

 

Internet comes in on 82.221.223.31   -   Goes into the wan port of my PFSense box where it then connects 2 different subnets   10.0.0.0 & 10.1.1.1  ( The subnets are required and not optional to changed... Server locations can not be easily altered requires a major shutdown of the network here either!!! )

 

i have one media server running on 1 subnet and another on the other subnet .....  my Emby server is currently running on subnet  10.0.0.0 and sees my first server ok  without a hitch.. the second server on the other hand i cannot even manually enter the address into Emby for it to find.. 

how can i set up emby server to see both servers on the different subnets ?... i have setup port forwards / ip forwards so the servers can communicate across both networks..

#

Any help would be appreciated 

 

pir8radio
Posted

so, what ports are each server running on?    why do you want server 1 to talk to server 2? I may be missing something here. 

Posted

I would think different port numbers and the corresponding forwarding in your router

MrGamecase
Posted

I have esxi running on them. vms running several different virtual pcs for work, one of the operating systems us unraid for my media servers ... unfortunately due to space restrictions i had to set up on 2 different servers ...on different subnets 

 

i have ports 8096 forwarded for emby  and a bunch of other ports for work.

 

 

What would i need to do to get emby to see both servers? i am aware emby can see several different physical servers on the same subnet but i  cannot get it to  find my other server...

pir8radio
Posted

I have esxi running on them. vms running several different virtual pcs for work, one of the operating systems us unraid for my media servers ... unfortunately due to space restrictions i had to set up on 2 different servers ...on different subnets 

 

i have ports 8096 forwarded for emby  and a bunch of other ports for work.

 

 

What would i need to do to get emby to see both servers? i am aware emby can see several different physical servers on the same subnet but i  cannot get it to  find my other server...

 

Uhhh... This is where we are confused... emby is the server...  you can run two different servers on two different ports, but a single client can not connect to two different servers as if they were one. (which is what I think you are trying to say/do)

MrGamecase
Posted

Uhhh... This is where we are confused... emby is the server...  you can run two different servers on two different ports, but a single client can not connect to two different servers as if they were one. (which is what I think you are trying to say/do)

 

Hi All, Sorry for the confusion, My governa does not quite what he is asking for..

 

as mentioned in a previous post .. we have 2 different LAN Subnets ( 10.0.0.0 & 10.1.1.1 ) easier to have PFSense act as a bridge (With relevant IP's able to fine each other across both subnets)  on the 2 subnets than configuring all our software..... Each Subnet has an ESXI server running on them which have several operating systems running on them.,                 Each ESXI server has a version of  UNRAID acting as a media share server only....  I have setup an emby server on a test rig that has been connected to the 10.0.0.0 subnet .......  

 

I can get the emby rig to communicate with the unraid virtual server on subnet 10.0.0.0 ok as it just sees it as another computer on the network, i can remote into the emby server from outside our network with no issues.. the issue im having is trying to get emby to see the other UNRAID Media share server on the second subnet.

 

from my understanding emby has the ability to search for media on different machines and serve them to kodi as if it on 1 machine..  

 

Please see attached image for network setup  ( All ip addresses theoretical )

 

Cheers 

 

Mr. S. J. Dorrington58d30cb3868f7_IMG_1969.jpg

MrGamecase
Posted

Hi All, Sorry for the confusion, My governa does not quite what he is asking for..

 

as mentioned in a previous post .. we have 2 different LAN Subnets ( 10.0.0.0 & 10.1.1.1 ) easier to have PFSense act as a bridge (With relevant IP's able to fine each other across both subnets)  on the 2 subnets than configuring all our software..... Each Subnet has an ESXI server running on them which have several operating systems running on them.,                 Each ESXI server has a version of  UNRAID acting as a media share server only....  I have setup an emby server on a test rig that has been connected to the 10.0.0.0 subnet .......  

 

I can get the emby rig to communicate with the unraid virtual server on subnet 10.0.0.0 ok as it just sees it as another computer on the network, i can remote into the emby server from outside our network with no issues.. the issue im having is trying to get emby to see the other UNRAID Media share server on the second subnet.

 

from my understanding emby has the ability to search for media on different machines and serve them to kodi as if it on 1 machine..  

 

Please see attached image for network setup  ( All ip addresses theoretical )

 

Cheers 

 

Mr. S. J. Dorrington58d30cb3868f7_IMG_1969.jpg

 

 

The issues is i cannot get the emby rig to find the server on the 10.1.1.1 subnet 

pir8radio
Posted

emby wont go out and look for random media on its own....  your unraid media is a file share i assume?  You would have to enter the share path into emby to get it to scan that media...   

pir8radio
Posted

also confused by your drawing, how can an un-managed switch have an ip?  

MrGamecase
Posted

I have attempted to enter both the ip address ..and share path into emby but it does not knowledge the server is there . keeps telling me there was an error 

58d311f6b4956_Untitled.png

now from a separate computer on the 10.0.0.0 subnet i can access the 10.1.1.1 subnet media share ( Yes its a nas share )

MrGamecase
Posted

What protocol does emby connect with?...

pir8radio
Posted

I would guess if your emby server was installed on a windows host it would be trying an SMB share.

MrGamecase
Posted

i currently have emby on a windows host..

 

The unraid servers have 

 

SMB, FTP, NFS & AFP Protocols enabled 

Posted

First, can you ping the unraid host from your emby server and vice versa.

 

 

Sent from my iPhone using Tapatalk

MrGamecase
Posted

Yes i can ping to both servers from both subnets.. i can connect to both web ui from both subnets and i can map shares from each server on both subnets with no issues.... it just seams like emby .. it flags the error ubove  nomater if i enter a host name , ip address or unc path ....

Posted

What exactly are you trying to do? Emby Server does not connect to another Emby Server. Or are you talking about connecting to both from a single Emby app?

MrGamecase
Posted

As explained inn previous posts yes.....

 

i need emby to to see / connect to the second unraid media share on subnet 10.1.1.1 ... 

mastrmind11
Posted

So mount your 10.1.1.1 share on your 10.0.0.0 server and point Emby to the mountpoint.

MrGamecase
Posted

ok so i try this manual mount command on my 10.0.0.0.server and receive this error

 

mount -t cifs //10.1.1.2/-S-E-R-I-E-S- /mnt/user/-S-E-R-I-E-S-
Password for root@//10.1.1.2/-S-E-R-I-E-S-: (************)
mount error(13): Permission denied
 
Any way round this .. not to sure on unraid permissions
MrGamecase
Posted

figured it ... cant  use root 

MrGamecase
Posted (edited)

ok so i have the share mounted on my 10.0.0.0 system but unable to get emby to see any files within it ...

 

 

I used this commands to mount the share and i can see items in it from my windows machine 

mount -t cifs //10.1.1.2/-S-E-R-I-E-S- /mnt/user/-S-E-R-I-E-S- -o username=root@10.1.1.2,password=Reddwarf-1-2,iocharset=utf8,file_mode=0777,dir_mode=0777
 
i can see the share in unraid console but not with in windows or within emby ....
Edited by MrGamecase
mastrmind11
Posted

You're confusing me now.  You can see files from what windows machine?  Isn't your Emby server on a windows machine?  Either way it's probably a permissioning issue on your unRaid box.

MrGamecase
Posted

Right, Sorry for my incompetent colleagues,

 

I have unraid running on 2 ESXI Servers.

ESXI Server 1 on subnet 1 10.0.0.200 has Unraid 6.3.2 virtualized sharing (movies) via SAMBA / NFS / AFP / FTP, I have EMBY Server running in a docker container on this unraid server and it can see the movies share with no issues what so ever.

ESXI Server 2 on subnet 2 10.1.1.200 has unraid 6.3.2 virtualized sharing (TV Series) i have disabled docker and virtual emulation on this VM so it is just sharing (Series) via SAMBA / NFS / AFP / FTP Only

 

Within the PFSense Box i have allowed any UDP / TCP Protocol / Port to communicate over both subnets...  so from any system on subnet 1 i can communicate to subnet 2 and vice versa.

Now, the question is what need to happen for the EMBY Server to be able to read the files on the (Series) share on subnet 2?

 

 

What my Colleagues have tried was attempting to mount the series share on the UNRAID host (Subnet 1) and try to get EMBY to see this mount, which failed... i can see the mount was successful in the console but unable to access via unc path or Web ui..

COMMAND USED TO MOUNT - COMMAND RUN FROM UNRAID HOST 1 (SUBNET 10.0.0.1)

mount -t cifs //10.1.1.200/-S-E-R-I-E-S- /mnt/user/-S-E-R-I-E-S- -o username=root@10.1.1.200,password=Reddwarf-1-2,iocharset=utf8,file_mode=0777,dir_mode=0777
 
please see attached image for (Very Rough) network layout
 
Stephen Dorrington - Senior Network Administration Manager
 
58d447a221de9_NETWORKMAP.png
pir8radio
Posted

 

Right, Sorry for my incompetent colleagues,

 

I have unraid running on 2 ESXI Servers.

ESXI Server 1 on subnet 1 10.0.0.200 has Unraid 6.3.2 virtualized sharing (movies) via SAMBA / NFS / AFP / FTP, I have EMBY Server running in a docker container on this unraid server and it can see the movies share with no issues what so ever.

ESXI Server 2 on subnet 2 10.1.1.200 has unraid 6.3.2 virtualized sharing (TV Series) i have disabled docker and virtual emulation on this VM so it is just sharing (Series) via SAMBA / NFS / AFP / FTP Only

 

Within the PFSense Box i have allowed any UDP / TCP Protocol / Port to communicate over both subnets...  so from any system on subnet 1 i can communicate to subnet 2 and vice versa.

Now, the question is what need to happen for the EMBY Server to be able to read the files on the (Series) share on subnet 2?

 

 

What my Colleagues have tried was attempting to mount the series share on the UNRAID host (Subnet 1) and try to get EMBY to see this mount, which failed... i can see the mount was successful in the console but unable to access via unc path or Web ui..

COMMAND USED TO MOUNT - COMMAND RUN FROM UNRAID HOST 1 (SUBNET 10.0.0.1)

mount -t cifs //10.1.1.200/-S-E-R-I-E-S- /mnt/user/-S-E-R-I-E-S- -o username=root@10.1.1.200,password=Reddwarf-1-2,iocharset=utf8,file_mode=0777,dir_mode=0777
 
please see attached image for (Very Rough) network layout
 
Stephen Dorrington - Senior Network Administration Manager
 

 

 

Wow, you are all over the place friend..  The the net map is nice though...   :)    So here is where I am confused...  On the WINDOWS EMBY SERVER you should be mapping/mounting the two un-raid drives using windows so they show up on the windows PC as drive letters, lets pretend you mapped them to Y:/Movies and Z:/series    Then point your emby setup to those local maps...  Once you map them in windows you should be able to open the drive and browse the files using windows, if that works there is no reason it wont work with emby unless you are saving metadata with media and don't have write access.  But you should get to step one first, mount and confirm you can browse from the emby windows OS and let us know.

 

By the way, the "mount -t cifs" command you said you used on the windows box shouldn't of worked its not a windows command, if you want to mount a drive using the command line in windows use "net use" but just mount it using the windows GUI....  

MrGamecase
Posted

Hi pir8radio,

 

My colleagues were not aware i had setup EMBY as a docker container, the windows machine they had used for EMBY Has now be scrapped ...    the (mount -t cifs) command was used on the unraid native operating system (Arch) on machine 1 (10.0.0.200)    to mount the series disk from machine 2 (10.1.1.200).... The mount was successful as you can see from this image below.  (Not the point forget about previous)

58d4511653fc5_1000200moint.png

 

Starting a scratch  the emby server is running within docker how can i get it to communicate with both servers... it see 10.0.0.200 fine but tells me 10.1.1.200 is an invalid address / not accessible (image below)  i can access the share from any pc on (subnet 10.0.0.1)

58d4539c2891e_1000200add.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...