You would think it would be a use case for Automator or Shortcuts but I don’t think it’s possible?
There are various apps that can do this but everyone I’ve found is very enterprise oriented and fairly expensive. I just want to send local network notifications to my phone once in a blue moon… (bonus if it would work while I’m talking a walk outside the range of my network too, but it’s not that important).