bingehub 0 Posted February 10, 2019 Posted February 10, 2019 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 Luke 42078 Posted February 10, 2019 Solution Posted February 10, 2019 Hi, we use these: http://ipv4bot.whatismyipaddress.com http://ipv6bot.whatismyipaddress.com With a fallback to https://connect.emby.media/service/ip 1
chowbok 132 Posted February 10, 2019 Posted February 10, 2019 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
bingehub 0 Posted February 11, 2019 Author Posted February 11, 2019 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!
kikinjo 281 Posted February 11, 2019 Posted February 11, 2019 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 ?
Luke 42078 Posted February 11, 2019 Posted February 11, 2019 You can always set the value in advanced settings.
bingehub 0 Posted February 15, 2019 Author Posted February 15, 2019 (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 February 15, 2019 by bingehub
Adam_Kearn 1 Posted April 6, 2021 Posted April 6, 2021 (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 April 6, 2021 by Adam_Kearn
Luke 42078 Posted April 6, 2021 Posted April 6, 2021 Yes, system/info will include the detected lan and wan addresses.
Adam_Kearn 1 Posted April 6, 2021 Posted April 6, 2021 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. 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. Regards, Adam. 1
Luke 42078 Posted April 7, 2021 Posted April 7, 2021 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. I am looking to get the true public IP. Right, there's no way to do that, sorry.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now