     //registerWithLiveOSC()
   }
   
-  private func startListeningOnAnyFreeLocalPort() {
-    server.listen(0)
-    NSLog("[OSCService] Started listening on local port \(server.getPort())")
+  private func startLocalServer() {
+    localServer.listen(0)
+    NSLog("[OSCService] Started listening on local port \(localServer.getPort())")
   }
   
   private func registerWithLiveOSC() {
-    sendMessage(OSCMessage(address: "/remix/set_peer", arguments: ["", server.getPort()]))
+    sendMessage(OSCMessage(address: "/remix/set_peer", arguments: ["", localServer.getPort()]))
   }
 }
 

    incomingMessagesSink = sink

    super.init()
    server.delegate = self

    startListeningOnAnyFreeLocalPort()
    
    Settings.serverAddress.producer
      // TODO ignoreNil would be nice
      |> filter { $0 != nil }

      incomingMessagesSink.put(Event.Next(Box(message)))
    }
  }

  func applicationWillResign() {
    NSLog("[OSCService] Application will resign, stopping OSC server")
    localServer.stop()
  }

  func applicationDidBecomeActive() {
    NSLog("[OSCService] Application became active")
  }
  
  // TODO rewrite
  func handleDisconnect(error: NSError!) {
