ericgla / RTC-Call-Monitor

Voice/video call detection by monitoring of UDP packet rate with notification via webhooks
37 stars 6 forks source link

Socket.IOControl handles Windows-specific control codes and is not supported on this platform #6

Open idofr opened 2 years ago

idofr commented 2 years ago

Hey, I'm trying to set this up on Ubuntu 20.04 and it seems to crash straight after init. I'm getting the following log:

`(base) zzz>@<my_machine:~/RTC-Call-Monitor/src (main)$ sudo dotnet run

<6>RtcCallMonitor.TrafficMonitor[0] loaded provider discord, 2 network prefixes <6>RtcCallMonitor.TrafficMonitor[0] loaded provider googlemeet, 1 network prefixes <6>RtcCallMonitor.TrafficMonitor[0] loaded provider gotomeeting, 35 network prefixes <6>RtcCallMonitor.TrafficMonitor[0] loaded provider msteams, 6 network prefixes <6>RtcCallMonitor.TrafficMonitor[0] loaded provider slack, 1 network prefixes <6>RtcCallMonitor.TrafficMonitor[0] loaded provider webex, 15 network prefixes <6>RtcCallMonitor.TrafficMonitor[0] loaded provider zoom, 69 network prefixes <6>RtcCallMonitor.TrafficMonitor[0] network changed! <6>RtcCallMonitor.TrafficMonitor[0] Auto-detected IP address: 192.168.xx.xx <6>RtcCallMonitor.NetworkListener[0] Updating monitor to watch traffic on 192.168.xx.xx <3>RtcCallMonitor.Worker[0] System.PlatformNotSupportedException: Socket.IOControl handles Windows-specific control codes and is not supported on this platform. at System.Net.Sockets.SocketPal.WindowsIoctl(SafeSocketHandle handle, Int32 ioControlCode, Byte[] optionInValue, Byte[] optionOutValue, Int32& optionLength) at System.Net.Sockets.Socket.IOControl(Int32 ioControlCode, Byte[] optionInValue, Byte[] optionOutValue) at RtcCallMonitor.NetworkListener.CreateAndBindSocket() in /home//RTC-Call-Monitor/src/NetworkListener.cs:line 39 at RtcCallMonitor.NetworkListener.Start() in /home//RTC-Call-Monitor/src/NetworkListener.cs:line 59 at RtcCallMonitor.NetworkListener.UpdateIpAddress(IPAddress newAddress) in /home//RTC-Call-Monitor/src/NetworkListener.cs:line 71 at RtcCallMonitor.TrafficMonitor.NetworkChange_NetworkAddressChanged(Object sender, EventArgs e) in /home//RTC-Call-Monitor/src/TrafficMonitor.cs:line 116 at RtcCallMonitor.TrafficMonitor.Start() in /home//RTC-Call-Monitor/src/TrafficMonitor.cs:line 79 at RtcCallMonitor.Worker.ExecuteAsync(CancellationToken stoppingToken) in /home//RTC-Call-Monitor/src/Worker.cs:line 29 <6>RtcCallMonitor.Worker[0] Using check interval of 2000ms, min packet rate 1 (base) @:~/RTC-Call-Monitor/src (main)$ ` Any ideas?
orgafni commented 2 years ago

Same for me, where you able to solve it @idofr ?