lidgren-network-gen3 icon indicating copy to clipboard operation
lidgren-network-gen3 copied to clipboard

Windows in airplane mode gives an error.

Open Victov opened this issue 9 years ago • 2 comments

Putting windows 10 in airplane mode (or having wifi disabled) generates a null reference exception. Lidgren tries to aquire an ip address but in airplane mode there is no ip address available.

I came by this when using Lidgren in Unity3D.

(partial) stack trace below.

NullReferenceException: Object reference not set to an instance of an object Lidgren.Network.NetUtility.GetBroadcastAddress () (at Assets/Scripts/External/Lindgren/Platform/PlatformWin32.cs:86) Lidgren.Network.NetPeerConfiguration..ctor (System.String appIdentifier) (at Assets/Scripts/External/Lindgren/NetPeerConfiguration.cs:98)

Victov avatar Sep 17 '15 11:09 Victov

@Victov fix the error, create a pull request :]

AgentFire avatar Oct 24 '15 20:10 AgentFire

@Victov may be I will try to fix it myself as I run into the same issue.

AgentFire avatar Nov 08 '15 18:11 AgentFire