Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
idofr opened this issue Jan 26, 2022 · 1 comment

Comments

@idofr
Copy link

idofr commented Jan 26, 2022

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?

@orgafni
Copy link

orgafni commented Jul 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants