How Can I Join My Server From An IP Address On My Website?

So basically I want to make my website have button that when you click, it will connect you to my server. I see people using steam://connect/255.255.255.255:27015 but when I do it with my server IP online it doesn’t work. Please Help I’m Lonely And Desperate.

BTW - I don’t know what post icon to put this under so I am going to put it under Steam kids.

have you verified that people can join your server via the “connect (ip)” command in the console

Are you using the correct port in the link? It has to be the same as the server’s post.

I have not checked if people can join through the console and yes I am using the same port for both, 27015.

if they can’t join through console they can’t use your server join link