I believe this might be caused by Google. Chromecasts will only cast from URLs that have a valid HTTPS certificate (self signed will not work). If you're accessing your Jellyfin over the local IP it will be impossible to get a valid certificate for it.