                 puts("Error: Facilitator spec must be in the form \"host:port\".");
                 return;
             }
+            relay_addr = get_param_addr("relay", DEFAULT_RELAY_ADDR);
+            if (!relay_addr) {
+                puts("Error: Relay spec must be in the form \"host:port\".");
+                return;
+            }
 
             main();
         }

            /* Update the client count on the badge. */
            update_client_count();

            proxy_pair = new ProxyPair(this, client_addr, DEFAULT_RELAY_ADDR);
            proxy_pair.addEventListener(Event.COMPLETE, function(e:Event):void {
                proxy_pair.log("Complete.");
                

        private var output_text:TextField;

        private var fac_addr:Object;
        private var relay_addr:Object;

        /* Number of proxy pairs currently connected (up to
           MAX_NUM_PROXY_PAIRS). */
