Skip to content

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

@idofr

Description

@idofr

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) @<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) @<my_machine>:~/RTC-Call-Monitor/src (main)$
`
Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions