code: def bind(self):
          
          log.debug("Set SO_REUSADDR")
          self.socket.setsockopt( socket.SOL_SOCKET, socket.SO_REUSEADDR, 1 )
          
          # we want daemon threads, so we join on abrupt shutdown (applies if multithreaded) 
          self.daemon_threads = True
  
          self.server_bind()
          self.server_activate()
docs: Bind to our port