From 5d8c44317d8c7fe715cb2ed591d62b2ca1da9103 Mon Sep 17 00:00:00 2001 From: Derek S <44935661+Derek-R-S@users.noreply.github.com> Date: Tue, 6 Apr 2021 12:59:07 -0500 Subject: [PATCH] Made it get the public ipv4 address --- ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs index 988f5f4..2df49be 100644 --- a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs +++ b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs @@ -24,7 +24,7 @@ namespace LightReflectiveMirror instance = this; _startupTime = DateTime.Now; using (WebClient wc = new WebClient()) - publicIP = wc.DownloadString("http://icanhazip.com").Replace("\\r", "").Replace("\\n", "").Trim(); + publicIP = wc.DownloadString("http://ipv4.icanhazip.com").Replace("\\r", "").Replace("\\n", "").Trim(); if (!File.Exists(CONFIG_PATH)) {