anchor.diff:  <%@ page import="org.jivesoftware.wildfire.stun.STUNService" %>
   <%@ page import="java.net.InetAddress" %>
   <%@ page import="java.util.List" %>
  +
  +<script type="text/javascript">
  +
  +    function checkAndSubmit() {
  +
  +        var ip1 = document.settings.primaryAddress.value;
  +        var ip2 = document.settings.secondaryAddress.value;
  +        var port1 = document.settings.primaryPort.value;
  +        var port2 = document.settings.secondaryPort.value;
  +
  +        var msg = "";
  +
  +        if (ip1 == ip2) {
  +            msg += "* The selected IP values are not valid. Please select different IPs.";
  +        }
  +        if (port1 == port2) {
  +            if (msg != "") msg += "\n";
  +            msg += "* The selected port numbers are not valid. Please select different port numbers."
  +        }
  +
  +        if (msg == "") {
  +            document.settings.save.value = "Change";
  +            document.settings.submit();
  +        }
  +        else alert(msg);
  +
  +    }
  +
  +</script>
  +
   <%
   
       STUNService stunService = XMPPServer.getInstance().getSTUNService();
   
  -    boolean save = request.getParameter("set") != null;
  +    boolean save = request.getParameter("save") != null;
       boolean success = false;
   
       boolean enabled = false;
  
positive.code: 
  <p>
      Use the form below to manage STUN Server settings.<br>
  </p>
  
  <% if (success) { %>
  
negative.code:             <tr>
                  <td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16"
                                             border="0"></td>
                  <td class="jive-icon-label">Server cannot started. Check your port
                      numbers and Primary and Secondary addresses.
                  </td>
              </tr>
          </tbody>
      </table>
  