Author: toad
Date: 2007-03-06 17:59:57 +0000 (Tue, 06 Mar 2007)
New Revision: 11998

Modified:
   trunk/freenet/src/freenet/node/IPDetectorPluginManager.java
Log:
Tell the user to forward a port

Modified: trunk/freenet/src/freenet/node/IPDetectorPluginManager.java
===================================================================
--- trunk/freenet/src/freenet/node/IPDetectorPluginManager.java 2007-03-06 
17:22:42 UTC (rev 11997)
+++ trunk/freenet/src/freenet/node/IPDetectorPluginManager.java 2007-03-06 
17:59:57 UTC (rev 11998)
@@ -46,13 +46,16 @@
                symmetricAlert = new SimpleUserAlert(false, "Symmetric firewall 
detected",
                                "Your internet connection appears to be behind 
a symmetric NAT or firewall. " +
                                "You will probably only be able to connect to 
users directly connected to the internet or behind " +
-                               "restricted cone NATs.", UserAlert.ERROR);
+                               "restricted cone NATs. You should forward the 
UDP port "+node.portNumber+" manually on your router.",
+                               UserAlert.ERROR);
                portRestrictedAlert = new SimpleUserAlert(true, "Port 
restricted cone NAT detected",
                                "Your internet connection appears to be behind 
a port-restricted NAT (router). "+
-                               "You will be able to connect to most other 
users, but not those behind symmetric NATs.", UserAlert.MINOR);
+                               "You will be able to connect to most other 
users, but not those behind symmetric NATs. " +
+                               "You should forward the UDP port 
"+node.portNumber+" manually on your router.", UserAlert.MINOR);
                restrictedAlert = new SimpleUserAlert(true, "Restricted cone 
NAT detected",
                                "Your internet connection appears to be behind 
a \"restricted cone\" NAT (router). "+
-                               "You should be able to connect to most other 
users.", UserAlert.WARNING);
+                               "You should be able to connect to most other 
users. " +
+                               "You should forward the UDP port 
"+node.portNumber+" manually on your router.", UserAlert.WARNING);
                connectedAlert = new SimpleUserAlert(true, "Direct internet 
connection detected",
                                "You appear to be directly connected to the 
internet. Congratulations, you should be able to connect "+
                                "to any other freenet node.", UserAlert.MINOR);


Reply via email to