lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

Linux support removed/broken in latest commit? (FIXED in Commit: 59995cc) #12

Closed RamiAhmed closed 9 years ago

RamiAhmed commented 9 years ago

Hi Lidgren,

Thanks for a great open source library!

In your latest commit, it seems as though Linux support has been removed - we are getting an exception in the NetPeerConfiguration constructor on our Linux server.

The exception is as follows:

NotImplementedException: The requested feature is not implemented.
  at System.Net.NetworkInformation.LinuxUnicastIPAddressInformation.get_IPv4Mask() [0x00000] in <filename unknown>:0
  at Lidgren.Network.NetUtility.GetBroadcastAddress () [0x00000] in <filename unknown>:0
  at Lidgren.Network.NetPeerConfiguration..ctor (System.String appIdentifier) [0x00000] in <filename unknown>:0
  at Game.Server.GameServer.Awake () [0x00000] in <filename unknown>:0

This exception appears on our rented Linux server running 64 bit Ubuntu. We're using Unity 5. Locally there are no issues on Windows 8.1

I hope you can fix this issue quickly, as we are really enjoying using your library - but Linux support is a must for us.

Thanks in advance!

lidgren commented 9 years ago

Try the latest commit 59995cc - it uses PlatformConstrained.cs for UNITY_STANDALONE_LINUX

RamiAhmed commented 9 years ago

Hi Lidgren,

Thanks a lot for your quick response and fix!

It appears to work beautifully now, so we will continue using your library with the utmost delight.

Thanks a lot again!