def _start_server(self):
    if self.authtoken:
        ngrok.set_auth_token(self.authtoken)
    active_tunnels = ngrok.get_tunnels()
    for tunnel in active_tunnels:
        public_url = tunnel.public_url
        ngrok.disconnect(public_url)
    url = ngrok.connect(addr=self.port, bind_tls=True)
    if self._code:
        print(f'Code Server can be accessed on: {url}')
    else:
        print(f'Public URL: {url}')
def _start_server(self):
    if self.authtoken:
        ngrok.set_auth_token(self.authtoken)
    active_tunnels = ngrok.get_tunnels()
    for tunnel in active_tunnels:
        public_url = tunnel.public_url
        ngrok.disconnect(public_url)
    url = ngrok.connect(addr=self.port, bind_tls=True)
    if self._code:
        print(f'Code Server can be accessed on: {url}')
    else:
        print(f'Public URL: {url}')