Skip to content

Conversation

@hedgehog1029
Copy link
Contributor

I was disappointed that Feishin didn't auto-detect my jellyfin server on launch, so I implemented it :3

  • Autodiscovery fires automatically and results are streamed back to the UI as they arrive
  • Only implemented for Jellyfin, but space left in the implementation if the other servers secretly have autodiscovery methods too (I couldn't find any from a cursory look)
  • Click a result to autofill the name and URL into the setup form
  • UI could maybe do with a touch up

@vercel
Copy link

vercel bot commented Sep 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
feishin Ready Ready Preview Comment Sep 26, 2025 9:21pm

Copy link
Collaborator

@kgarner7 kgarner7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Multiple linter errors are present. Run pnpm lint:fix, and ignore the warning in context-menu-provider.tsx
  2. This does not appear to work if Jellyfin is on the same system as Feishin (and also if there are VPNs/alternative routing)

@hedgehog1029
Copy link
Contributor Author

Linter errors resolved 🫡

I think it not working for local machine or weird routing setups is normal and in-line with how official Jellyfin clients would expect to work. Discovery works by broadcasting a UDP packet to 255.255.255.255:7359, and packets with that destination address are never routed, only switched. So you have to be on the same L2 broadcast domain.

Also, all-high-bits broadcast is kind of weird and if you have multiple suitable interfaces it might just pick a random interface each time to send the packet out of. We could do slightly better if we scanned all the interfaces and used the subnet broadcast address to send a packet out of each interface, but that sounds complicated and platform-specific so I didn't bother.

@hedgehog1029
Copy link
Contributor Author

Per some discussion in the discord, fixed localhost discovery by sending another discovery packet to the loopback broadcast address!

@kgarner7 kgarner7 requested a review from jeffvli September 26, 2025 21:23
@kgarner7 kgarner7 merged commit e344adf into jeffvli:development Sep 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants