I want to connect my server that i created with https://docs.fivem.net/docs/server-manual/setting-up-a-server and it says failed to handshake with server

Did you open your ports on the firewall and or forward them on your router if it’s home hosted? If it’s locally hosted then use your computers internal ip instead of your public external ip.