From 4a5e7f291f91c0e77299b4776e9b364439bff95f Mon Sep 17 00:00:00 2001 From: Vincent BOUQUET Date: Sat, 31 May 2025 23:44:15 +0200 Subject: [PATCH] allow detection of all cameras --- MainForm.cs | 2 +- StreamViewer.cs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/MainForm.cs b/MainForm.cs index 3942bca..f29b8e1 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -24,7 +24,7 @@ namespace robospot_camera_finder // UDP discovery constants private const int SEND_PORT = 7701; private const int RECEIVE_PORT = 7711; - private const string BROADCAST_ADDRESS = "10.255.255.255"; + private const string BROADCAST_ADDRESS = "255.255.255.255"; private const byte DEF_REQ_SCAN = 1; private const byte RES_REQ_SCAN = 11; diff --git a/StreamViewer.cs b/StreamViewer.cs index 705a786..eb2c3ae 100644 --- a/StreamViewer.cs +++ b/StreamViewer.cs @@ -25,6 +25,11 @@ namespace robospot_camera_finder cam_ip = ip; this.Text = name; + if (!cam_ip.StartsWith("10.")) + { + MessageBox.Show("Camera is not on the 10.0.0.0/8 network, the RoboSpot might not find it.", "Wrong IP", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + string rtsp_link = "rtsp://" + ip + "/profile2/media.smp"; updateZoomSlider();