Joining a server by IP

I feel like a retard posting something this simple, but what is the console command or option to join a server if you know it’s IP? I tried putting the IP in favorites, but my favorites list is broken for some stupid reason.

Uh, I forget what the exact command is but you should be able to type ‘connect [IPhere]’ or ‘join [IPhere]’ or something like that in the console. I’ve used it before but I’m too lazy to start Gmod to see what it is.

I’ll try it

Edit: Works perfectly, thank you.

Not a problem.

By the way, the favorites tab seems to work if you add a server by IP and then restart Gmod, but it may just be me.