EventServerConnection::testEventServerConnection doesn't work with ipv6 only
Bug report
Describe the bug
I have kodi configured with eventserver enabled, but my kodi instance is only accessible over IPv6. I've verified that I can talk to the event server from another machine over ipv6 (using a modified version of this python client), but Kore does not detect the presence of the event server.
Expected Behavior
I expect Kore to detect and successfully use my kodi's event server over IPv6.
Actual Behavior
Kore fails to detect the presence of the event server, and falls back to the JSON api (which does work over IPv6).
Possible Fix
I read the code a bit, and it appears there are 2 places where Kore assumes ipv4 for the event server:
- Here where testing for connectivity: https://github.com/xbmc/Kore/blob/5c686f66235eb5b4bd606c01772da9daf1957c14/app/src/main/java/org/xbmc/kore/eventclient/EventServerConnection.java#L168
- And here when making a connection: https://github.com/xbmc/Kore/blob/5c686f66235eb5b4bd606c01772da9daf1957c14/app/src/main/java/org/xbmc/kore/eventclient/EventServerConnection.java#L102
To Reproduce
- Set up a kodi with an event server. Ensure that kodi instance is only accessible over ipv6.
Debuglog
I promise this is not relevant. It's not a Kodi issue, it's a Kore issue. I know my event server is working over ipv6, because I tested it from my laptop,
Screenshots
I don't think there's a lot to show here. Kore simply unchecks the "event server" checkbox when I try to add event server to my media center configuration (as described here).
Additional context or screenshots (if appropriate)
N/A
Your Environment
- Mobile device: Android
- Android version: 16
- Kodi version and platform: Kodi 21.3 on Linux
- Kore version: v3.1.0
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.