App is designed to work without internet access, doing peer to peer data syncing with other app users, on local network. It finds other apps by doing a udp broadcast (and listens for responses).
The part of the app that does this is using .net core api NetworkInterface.GetAllNetworkInterfaces();
Without hardware-observe
we get exceptions of the following type:
System.UnauthorizedAccessException: Access to the path ‘/sys/class/net/vethMIIHDR/mtu’ is denied. —> System.IO.IOException: Permission denied — End of inner exception stack trace — at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at
Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags
flags, Int32 mode) at System.IO.FileStream.OpenHandle(FileMode mode,
FileShare share, FileOptions options) at
System.IO.FileStream…ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options) at
System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding
encoding, Int32 bufferSize) at System.IO.StreamReader…ctor(String
path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks) at
System.IO.File.InternalReadAllText(String path, Encoding encoding) at
System.IO.File.ReadAllText(String path) at
System.Net.NetworkInformation.StringParsingHelpers.ParseRawIntFile(String
filePath) at
System.Net.NetworkInformation.LinuxIPv4InterfaceProperties.GetMtu() at
System.Net.NetworkInformation.LinuxIPv4InterfaceProperties…ctor(LinuxNetworkInterface
linuxNetworkInterface) at
System.Net.NetworkInformation.LinuxIPInterfaceProperties…ctor(LinuxNetworkInterface
lni) at
System.Net.NetworkInformation.LinuxNetworkInterface…ctor(String name,
Int32 index) at
System.Net.NetworkInformation.LinuxNetworkInterface.GetOrCreate(Dictionary`2 interfaces, String name, Int32 index) at System.Net.NetworkInformation.LinuxNetworkInterface.<>cDisplayClass5_0.b1(String name, IpAddressInfo ipAddr, UInt32 scopeId)<— ---> (Inner Exception #43) System.UnauthorizedAccessException: Access to the path ‘/sys/class/net/veth6HVW1D/mtu’ is denied. —>
As GetAllNetworkInterfaces
is returning all interfaces, (and we filter for IPv4 ones).
More info about app:
This app is Linux desktop port of android app.
Thanks.