Jump to content
jemus

EmbyCon connect to localhost

Recommended Posts

jemus

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.

 

Share this post


Link to post
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
 

Share this post


Link to post
Share on other sites
Luke

Hi, where did you try to set localhost?

Share this post


Link to post
Share on other sites
TeamB

also you may be able to use the devices name

Share this post


Link to post
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.

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
jemus

Guess that might only work on Windows but not on Linux ;)

Share this post


Link to post
Share on other sites
Painkiller8818
Posted (edited)

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

Share this post


Link to post
Share on other sites
Riggs
Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Painkiller8818
Posted (edited)
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
jemus
Posted (edited)

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

Share this post


Link to post
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...