def METHOD_NAME():
    local_realm = REALMLIST[config.Server.Connection.Realm.local_realm_id]
    server_socket = RealmManager.build_socket(local_realm.proxy_address, local_realm.proxy_port)
    server_socket.listen()
    real_binding = server_socket.getsockname()
    Logger.success(f'Proxy server started, listening on {real_binding[0]}:{real_binding[1]}\a')
    while True:
        try:
            client_socket, client_address = server_socket.accept()
            RealmManager.redirect_to_world(client_socket)
            client_socket.shutdown(socket.SHUT_RDWR)
            client_socket.close()
        except socket.timeout:
            pass  # Non blocking.
        except OSError:
            Logger.warning(traceback.format_exc())
        except KeyboardInterrupt:
            break
    Logger.info("Proxy server turned off.")