diff --git a/htroot/SettingsAck_p.html b/htroot/SettingsAck_p.html
index 5d3d9fa47..3e07812fa 100644
--- a/htroot/SettingsAck_p.html
+++ b/htroot/SettingsAck_p.html
@@ -52,7 +52,7 @@ Auto pop-up of the Status page is now enabled
You are now permanently online. After a short while you should see the effect on the status page.
::
The Peer Name is: #[peerName]#
-
+Your static Ip(or DynDns) is: #[staticIP]#
::
Seed Settings changed.#(success)#::You are now a principal peer.#(/success)#
::
diff --git a/htroot/SettingsAck_p.java b/htroot/SettingsAck_p.java
index 171b67fdf..0044c72e6 100644
--- a/htroot/SettingsAck_p.java
+++ b/htroot/SettingsAck_p.java
@@ -297,6 +297,8 @@ public class SettingsAck_p {
// check if peer name already exists
String peerName = (String) post.get("peername");
+ String staticIP = (String)prop.get("staticIP");
+ env.setConfig("staticIP", staticIP);
yacySeed oldSeed = yacyCore.seedDB.lookupByName(peerName);
if ((oldSeed == null) || (env.getConfig("peerName","").equals(peerName))) {
@@ -314,6 +316,7 @@ public class SettingsAck_p {
env.setConfig("peerName", peerName);
prop.put("info", 12);//port or peername changed
prop.put("info_peerName", peerName);
+ prop.put("info_staticIP", staticIP);
}
} else {
// deny change
diff --git a/htroot/Settings_p.html b/htroot/Settings_p.html
index 12ee04ed8..a9d0bd478 100644
--- a/htroot/Settings_p.html
+++ b/htroot/Settings_p.html
@@ -74,13 +74,11 @@ delete the file 'DATA/SETTINGS/httpProxy.conf' in the YaCy application root fold
Using your 'Home Page' and 'File Share' - zones you also have a platform to provide content to your new domain. (hint: Choose a name that appears on a web page that tells something about you, visit the page, get the 'senior' status, and you can be found...)
-
diff --git a/htroot/Settings_p.java b/htroot/Settings_p.java
index ce6d7e9ac..bdcc8ce96 100644
--- a/htroot/Settings_p.java
+++ b/htroot/Settings_p.java
@@ -69,6 +69,7 @@ public final class Settings_p {
prop.put("port", env.getConfig("port", "8080"));
prop.put("peerName", env.getConfig("peerName", "nameless"));
+ prop.put("staticIP", env.getConfig("staticIP", ""));
String peerLang = env.getConfig("htLocaleSelection", "default");
if (peerLang.equals("default")) peerLang = "en";
prop.put("peerLang", peerLang);