Tautulli / Tautulli-Issues

Bug reports for Tautulli
18 stars 3 forks source link

Tautulli Login shows wrong IP address for client #26

Open ning42 opened 6 years ago

ning42 commented 6 years ago

Version: VERSION V2.0.22 Branch: master Commit hash: a08bce2073b1847762a22a843b13acc5f996d9cb Operating system:

QNAP / docker tautulli/tautulli Python version: 2.7.14 (default, Feb 22 2018, 21:59:35) [GCC 6.3.0] What you did? I enabled user access to Tautulli, and looked at the Tautulli Login log for a user What happened? The Tautulli Login shows the IP of the virtual switch IP, and not the endusers IP. Doesn't matter if it was a external user or user on local network What you expected? I expted to see the endusers IP How can we reproduce your issue?

Enable user access, and let user login, look user history What are your (relevant) settings? Docker resides on QNAP, that has a virtual Switch where the docker is placed.

Arcanemagus commented 6 years ago

Are you able to try the nightly branch? There was a recent commit that might fix this, but it's also entirely possible that the networking setup you are running it under is simply re-writing the IP addresses making it so the information is completely gone by the time it gets to Tautulli.

ning42 commented 6 years ago

just tried the nightly branch, that does not change it. it still shows the ip of the virtual switch. I just sounds strange that passing though a virtual swicht, should make it not possible to show the endusers ip.

ning42 commented 6 years ago

What information can I provide to help?

chonkworld commented 6 years ago

Same issue here.

chonkworld commented 6 years ago

All external streams show the firewall IP address and shows LAN. I expected location of WAN and external user's public IP address.

Arcanemagus commented 6 years ago

@chonkworld Although the root cause is probably the same, the IP address that Plex is reporting for streams is a Plex issue and has nothing to do with Tautulli. You can verify this information is coming directly from your Plex server by following the Debugging guide. If you are still curious, please hop in the Discord server.

Arcanemagus commented 6 years ago

@ning42 The only thing I can think of is running tcpdump from within the container and verifying the IP address that the user's traffic is coming in over. This sounds like a misconfiguration of the QNAP container networking stack, but as none of us have one of those devices it's rather hard to diagnose further.

chonkworld commented 6 years ago

Thank you for the prompt reply, that was unexpected :) I trust your explanation, it's just not what I would have expected. My assumption, however, based on your explanation is that if Plex changes this behavior, Tautulli will interpret and display the data provided by the Plex server; is that a fair assumption?

Also, I need to get better at using GitHub, I didn't realize that this was originally posted as QNAP OS. I am running on Ubuntu Linux 14.04.

Arcanemagus commented 6 years ago

My assumption, however, based on your explanation is that if Plex changes this behavior, Tautulli will interpret and display the data provided by the Plex server; is that a fair assumption?

Tautulli is recording the data that Plex reports to it, so yes, if your Plex server starts seeing the correct IP address it should show correctly in Tautulli.

If you are still curious, please hop in the Discord server.

Again, head to the Discord server if you want to know more. I'm hiding this conversation as off-topic since it has nothing to do with this issue 😉.

Alexdc-12 commented 5 years ago

Hi This is similar issue, we are using a notifier for a on play event. The ip address passed is not always correct. For one user I can see different incorrect ip addresses in the notify events however in the session_history table I can see the correct ips this user has used.

samwiseg0 commented 5 years ago

@Alexdc-12 This sounds like something completely different. Please use one of the support options available, with Discord being preferred.