diff --git a/platform-sdk/platform-apps/demos/HashgraphDemo/src/main/java/com/swirlds/demo/hashgraph/HashgraphDemoMain.java b/platform-sdk/platform-apps/demos/HashgraphDemo/src/main/java/com/swirlds/demo/hashgraph/HashgraphDemoMain.java index d8fd3b8932e6..8395666460b0 100644 --- a/platform-sdk/platform-apps/demos/HashgraphDemo/src/main/java/com/swirlds/demo/hashgraph/HashgraphDemoMain.java +++ b/platform-sdk/platform-apps/demos/HashgraphDemo/src/main/java/com/swirlds/demo/hashgraph/HashgraphDemoMain.java @@ -42,8 +42,6 @@ import com.swirlds.platform.ParameterProvider; import com.swirlds.platform.gui.GuiPlatformAccessor; import com.swirlds.platform.gui.SwirldsGui; -import com.swirlds.platform.network.ExternalIpAddress; -import com.swirlds.platform.network.IpAddressStatus; import com.swirlds.platform.network.Network; import com.swirlds.platform.state.address.AddressBookNetworkUtils; import java.awt.Checkbox; @@ -249,14 +247,6 @@ public void paintComponent(final Graphics g) { final Address address = platform.getAddressBook().getAddress(platform.getSelfId()); print(g, "Internal: " + Network.getInternalIPAddress() + " : " + address.getPortInternal(), 0); - final ExternalIpAddress ipAddress = Network.getExternalIpAddress(); - String externalIpAddress = ipAddress.toString(); - if (ipAddress.getStatus() == IpAddressStatus.IP_FOUND) { - externalIpAddress += " : " + address.getPortExternal(); - } - - print(g, "External: " + externalIpAddress, 0); - final int height1 = (row - 1) * textLineHeight; // text area at the top final int height2 = getHeight() - height1; // the main display, below the text g.setColor(Color.BLACK);