It might just be your computer.
I tried hosting a server, followed every instruction correctly but I couldn't connect to my server.
Try using 127.0.0.1 for connecting to your own server if you haven't.
Also make sure the port number is on the end when giving IP to others.
Oh wait, you have Mac, so Idk if that will work.