Jump to content

How Does Emby Detect External IP Address?


Go to solution Solved by Luke,

Recommended Posts

Posted

How does Emby get the external IP? In my setup, I route traffic at the perimeter based on destination.

 

For instance, Plex uses http://plex.tv/pms/:/ip to determine the external IP address and nslookup reveals all the IPs I need. However, if I do an nslookup for emby.media, the IP returned doesn't give me an IP I can use to get the correct route.

  • Solution
Posted

Hi, we use these:

http://ipv4bot.whatismyipaddress.com
http://ipv6bot.whatismyipaddress.com

With a fallback to

https://connect.emby.media/service/ip
  • Like 1
Posted

Not sure if this helps anyone, but if you ever want a shell one-liner for determining your external IP, this will work:

dig +short myip.opendns.com @resolver1.opendns.com
Posted

 

Hi, we use these:

http://ipv4bot.whatismyipaddress.com
http://ipv6bot.whatismyipaddress.com

With a fallback to

https://connect.emby.media/service/ip

 

Thanks, that did the trick!

Posted

What if like me user is running server on non public interface ? I have 2 interfaces , eth0 public, tun0 internal. What is the impact of this check on config like this and impact on live tv for example ?

Posted

You can always set the value in advanced settings.

Posted (edited)

What if like me user is running server on non public interface ? I have 2 interfaces , eth0 public, tun0 internal. What is the impact of this check on config like this and impact on live tv for example ?

 

It looks like you mean you are using a VPN on tun0 for Emby. This check shouldn't have any impact since all it does is help Emby resolve your WAN IP address. In my case I needed Emby to detect a non-default static route.

Edited by bingehub
  • 2 years later...
Adam_Kearn
Posted (edited)
On 2/10/2019 at 7:13 AM, Luke said:

Hi, we use these:



http://ipv4bot.whatismyipaddress.com
http://ipv6bot.whatismyipaddress.com

With a fallback to



https://connect.emby.media/service/ip

Hey @Luke,

Sorry for tagging onto an old post.
Do you know if the results generated from these are accessable from the API?    (I had a look on swagger but coudn't see anything related)

I am working on a pluging that needs to access the public IP.

Thanks.
Adam.

Edited by Adam_Kearn
Posted

Yes, system/info will include the detected lan and wan addresses.

Adam_Kearn
Posted
43 minutes ago, Luke said:

Yes, system/info will include the detected lan and wan addresses.

Hey @Luke,

I had looked at that endpoint earler.   It looks like if you have a domain setup with emby it will show that instead of the public IP.

image.png.1261159e5355a053bea8c2f7e819ad9e.png

I am looking to get the true public IP.
I am working on a plugin that will intergrate with multiple DDNS providers to allow users to easly link there server to a domain.

I only started it last night so haven't written much code yet.   But here is what I've done so far.

unknown.png

Regards,
Adam.

  • Like 1
Posted
Quote

I had looked at that endpoint earler.   It looks like if you have a domain setup with emby it will show that instead of the public IP.

image.png.1261159e5355a053bea8c2f7e819ad9e.png

I am looking to get the true public IP.

Right, there's no way to do that, sorry.

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