Help with minecraft server project

Can you try to connect via the IP address directly with the MC client? Do you get the same error message? Is there any output in the server/dashboard logs?

You can also try installing a telnet client on the mac and then run:

telnet 192.168.1.157 <port>

where <port> is either 25565, 25575 or 22 (try all of them to see if you get a socket connection) to see if the server is actually reachable over TCP.