People can join my server when I compile one, but not when I create a server.

When I compile a map and it launches game and a server and map, people can join there then. But when I create a Listen server, people cannot join. Why is this?