You are getting error because You did not specified Name for server, Click on "General" tab provide name for your server like "PostgreSQL9.6"
Refer the pgAdmin4 documents:
Connecting to server:
https://www.pgadmin.org/docs4/dev/connecting.html
Creating new server:
https://www.pgadmin.org/docs4/dev/server_dialog.html
While creating new Server you should have all the required parameters like,
Host (default is "localhost" if database is installed on local system), Port(default is "5432"), Maintenance Database Name (default is "postgres"), User Name (default is "postgres"), Password
Without above required information you can't connect to PostgreSQL database server.