Jump to content

EmbyCon connect to localhost


jemus

Recommended Posts

Hey,

I was wondering if there is a way to connect EmbyCon to the Emby Server that is running on the very same device without using the IP address.

I have a device running CoreElec and it would be nice to start it on vacation in a different network and still reach the Emby Server even if the IP address of the CoreElec Box changes.

I tried to set the server address to "localhost" but that way EmbyCon does't find it.

 

Link to comment
Share on other sites

Painkiller8818
1 hour ago, jemus said:

Hey,

I was wondering if there is a way to connect EmbyCon to the Emby Server that is running on the very same device without using the IP address.

I have a device running CoreElec and it would be nice to start it on vacation in a different network and still reach the Emby Server even if the IP address of the CoreElec Box changes.

I tried to set the server address to "localhost" but that way EmbyCon does't find it.

 

127.0.0.1 will also be the localhost and it should work always and never changes
 

Link to comment
Share on other sites

jemus

Well turns out localhost works as it should, the problem was, that I rebooted the device and emby server didn't start on boot.
Wasn't able to find it that way.
 

So I have to take a look at why the server doesn't start with the system.

 

Link to comment
Share on other sites

Painkiller8818
1 hour ago, jemus said:

Well turns out localhost works as it should, the problem was, that I rebooted the device and emby server didn't start on boot.
Wasn't able to find it that way.
 

So I have to take a look at why the server doesn't start with the system.

 

This can be set in the Settings Tab:
 

boot.png

Link to comment
Share on other sites

Painkiller8818

ah ok this menu point is missing on linux.

 

you can try this: systemctl enable emby-server

not sure if coreelec is based on debian, but this works for me on the linux server (debian)

Edited by Painkiller8818
  • Like 1
Link to comment
Share on other sites

Riggs

Basic Linux commands to managed units:

You will need:  sudo user or root access 

Start Emby immediately:

# systemctl start emby-server

Stop Emby immediately:

# systemctl stop emby-server

Restart Emby:

# systemctl restart emby-server

 

Enable Emby to be started on bootup:

# systemctl enable emby-server

Enable Emby to be started on bootup and Start immediately:

# systemctl enable --emby-server

Disable Emby to not start during bootup:

# systemctl disable emby-server
Edited by Riggs
Link to comment
Share on other sites

Riggs
51 minutes ago, Painkiller8818 said:

ah ok this menu point is missing on linux.

 

you can try this: systemctl enable emby-server

not sure if coreelec is based on debian, but this works for me on the linux server (debian)

It will works in  any Linux distro based on Systemd

Link to comment
Share on other sites

Painkiller8818
8 minutes ago, Riggs said:

It will works in  any Linux distro based on Systemd

yeah but i don't know libreelec well, i just know libreelec doesn't know sudo, so maybe coreelec also don't know sudo per default.

so it could also be sudo update-rc.d depending on his system.

Edited by Painkiller8818
  • Like 1
Link to comment
Share on other sites

Riggs
10 minutes ago, Painkiller8818 said:

yeah but i don't know libreelec well, i just know libreelec doesn't know sudo.

so it could also be sudo update-rc.d depending on his system.

You did very well, I just took the opportunity to leave a little more info with the commands for init-based systems - systemd
Librelec may not be able to use sudo (I don't know either), although I do know that you will be able to use root, which is the super user after all. :)

For general culture and community support Librelec uses the systemd for the init
Have a great time ;)

  • Like 1
Link to comment
Share on other sites

jemus

Tried to enable the service but it seems like I have to create it firstly.

CoreELEC:~ # systemctl enable emby-server

Failed to enable unit: Unit file emby-server.service does not exist.

 

Edit:

Seems like other users are running into similar issues on libreelec:

https://forum.libreelec.tv/thread/21285-update-emby-server-to-latest-in-libreelec-repo/?pageNo=2

Edited by jemus
Link to comment
Share on other sites

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