Can I connect to a server while on a computer that's running a dedicated server?

A few months back, I was able to connect to my server on the same computer that it was running now. Now, that’s not the case and it’s kind of annoying having to run back in forth, computer to computer to fix some settings and testing them out. Anyone have a workaround for this?

Try changing the servers ports?
I haven’t had any problem with this since I started using multiple servers and changing up the ports of them.

Don’t use 27005 as a server port.

I use 27015. Is that ok?

If you know about this already please disregard:

If you are on the computer that is running the server or on a computer on the same local area network you need to connect via the servers Internal IP and then the port number (normally something like 192.168.X.X:PORT)

You can, I do.