private void HasLoaded(object sender, RoutedEventArgs e) { string ip = Constants.ISLAN ? "127.0.0.1" : new WebClient().DownloadString("http://icanhazip.com"); string name = "Dennis"; #if !DEBUG ServerConnection.I.Port = 4444; name = "Indie " + name; #endif Core.Util.Log.I.Add(name); User.I.Load(ip, PeerConnection.GetLocalIPAddress(), name); ServerConnection.I.Connect(); Navigator.I.Init(); Log.Show(); }