How can I connect to my dedicated server over the internet? (Works locally)

Thanks for the reply.
I should specify that I tried to disable Windows Firewall entirely on both machines.
I attempted to pass the command-line arguments -ip=(Hamachi IPv4 address) and -port=7777 on both the server and client.
I also tried using a different network (mobile network) for my second machine, both as server and client.