02/16/2022, 2:42 PM
Hey, what ports should be open for working on 2 VPS (1st is server and ui, on 2nd is a local agent). Right now I have port 4200 and 8080 open, but when I start prefect server without cloud. I get: (on second screenshot i replaced my serwer IP with localhost)

Anna Geller

02/16/2022, 2:55 PM
How did you start your server? When you start it in a remote VM, you need to use the expose flag:
prefect server start --expose
Here you can find the syntax to use for the agent machine
endpoint = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"

    apollo_url = "<http://YOUR_MACHINES_PUBLIC_IP:4200/graphql>"