I'm using my Pi as a simple video stream viewer with omxplayer loading the static IP of my rtsp stream. However, I use this on different networks (including the stream server) so the server and my Pi change IPs. I can't have static since the IP pool is sometimes 10.xxx.xxx.xxx or sometimes 192.xxx.xxx.xxx etc. And I don't always have access to the router. (it's a video relay used in public venues).
Is there a brilliant script that can scan the currently connected network (looking for an rtsp port or a particular file that would be hosted on my server) and return the IP of the server?