@MCoburn: No, you can clearly see that in one screenshot the LAN network is connected, and in the other it's disconnected. 3G would show a wifi symbol, not a LAN icon.
@Tauti: You can try changing TNTools.localAddress to this:
static public IPAddress localAddress
{
get
{
if (mLocalAddress == null)
{
mLocalAddress = IPAddress.Loopback;
List<IPAddress> list = localAddresses;
if (list.size > 0)
{
mLocalAddress = mAddresses[0];
for (int i = 0; i < mAddresses.size; ++i)
{
IPAddress addr = mAddresses[i];
string str = addr.ToString();
// Hamachi IPs begin with 25
if (str.StartsWith("25.")) continue;
// This is a valid address
mLocalAddress = addr;
break;
}
}
}
return mLocalAddress;
}
set
{
mLocalAddress = value;
if (value != null)
{
List<IPAddress> list = localAddresses;
for (int i = 0; i < list.size; ++i)
if (list[i] == value)
return;
}
#if UNITY_EDITOR
UnityEngine.Debug.LogWarning("[TNet] " + value + " is not one of the local IP addresses. Strange things may happen.");
#else
System.Console.WriteLine("[TNet] " + value + " is not one of the local IP addresses. Strange things may happen.");
#endif
}
}
...however I'd need to know the version of TNet you're using, and the line on where the issue occurs. For that to happen you should run the application via Unity, or from Visual Studio, not by running the server executable.
P.S. You can also add an early exit after line 120 in the same file:
UnicastIPAddressInformationCollection uniAddresses = props.UnicastAddresses;
if (uniAddresses == null) continue; // <-- this
...but again, I need to know the line number where the crash happens.