Oxide.Core.Utility.GetLocalIP NotImplementedExceptionFixed
Failed to call hook 'OnEntityDeath' on plugin 'Logging v1.0.0' (NotImplementedException: The method or operation is not implemented.)
  at System.Net.NetworkInformation.LinuxUnicastIPAddressInformation.get_PrefixOrigin () [0x00000] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0 
  at Oxide.Core.Utility.GetLocalIP () [0x000a5] in <12678b905a6d43c3a9cc366104306651>:0 

It's on a fresh install linux server. I suspect i'm missing some package, anyone come across this problem?

Works fine on windows server. Haven't tested on other linux servers.

Thanks in advance!

Guess it simply is not implemented for Linux

Qble9YPyseIOkyH.png misticos

Guess it simply is not implemented for Linux

i'm 99% sure i've had it working on linux before, so either that's a change, or as I suggested, i'm missing some library on the server.

nope, it indeed simply is not coded

The error means that the System DLL that Rust uses does not have what Oxide was built with and expects to be there. This is a bit odd though, because this is the first report of that and the method has been there for a long time.

Looking at the System.dll that Rust includes though, it appears that it isn't implemented at all.

        public override PrefixOrigin PrefixOrigin
        {
            get
            {
                throw new NotImplementedException();
            }
        }

I'll take a look at resolving it, but it shouldn't cause any issues.

Sorry I stand corrected. Checked an older install where the server worked and it used an earlier version of the plugin without that call. I can probably find another way of getting the IP.

What exactly are you trying to do? That GetLocalIP method isn't really intended for plugins to use, it's mainly used for Oxide internal use via IServer.Address and such. Either way, the exception is handled with the newer Oxide builds.

Sms93XCsaKQMsl4.png Wulf

What exactly are you trying to do? That GetLocalIP method isn't really intended for plugins to use, it's mainly used for Oxide internal use via IServer.Address and such. Either way, the exception is handled with the newer Oxide builds.

I just needed to get the local ip of the server to identify it in a web frontend. But I can set up a public ip service to pull it off.

Bheam

I just needed to get the local ip of the server to identify it in a web frontend. But I can set up a public ip service to pull it off.

For a public IP, that's available via IServer.Address on the server. GetLocalIP would be a LAN address.

server.Address or covalence.Server.Address
Locked automatically