diff --git a/config/local.json b/config/local.json
index 0c89dc8f12daec77e281685370c6302f708801f0..6d346f58d91652f91b4eff0e375a3941ec55d7a2 100644
--- a/config/local.json
+++ b/config/local.json
@@ -3,8 +3,8 @@
   "keysigner": { "bind_to": { "port": 10003 } },
   "dbwriter": { "bind_to": { "port": 10004 } },
   "proxy": { "bind_to": { "port": 10006 } },
-  "browserid": { "bind_to": { "port": 10002 } },
-  "router": { "bind_to": { "port": 10007 } },
+  "browserid": { "bind_to": { "port": 10007 } },
+  "router": { "bind_to": { "port": 10002 } },
   "use_minified_resources": false,
   "database": {
     "driver": "json"
diff --git a/scripts/run_locally.js b/scripts/run_locally.js
index 0d7f2adbbcf28f328a47c3acc1e0f3851392c954..13a59a531468c30d11799f999f891d8bb0a41e76 100755
--- a/scripts/run_locally.js
+++ b/scripts/run_locally.js
@@ -51,10 +51,10 @@ process.env['LOG_TO_CONSOLE'] = 1;
 
 // all spawned processes will communicate with the local browserid
 process.env['DBWRITER_URL'] = 'http://' + HOST + ":10004";
-process.env['BROWSERID_URL'] = 'http://' + HOST + ":10002";
+process.env['BROWSERID_URL'] = 'http://' + HOST + ":10007";
 process.env['VERIFIER_URL'] = 'http://' + HOST + ":10000/verify";
 process.env['KEYSIGNER_URL'] = 'http://' + HOST + ":10003";
-process.env['ROUTER_URL'] = 'http://' + HOST + ":10007";
+process.env['ROUTER_URL'] = 'http://' + HOST + ":10002";
 
 process.env['URL'] = process.env['ROUTER_URL'];