Multiplayer Games?

BlitzMax Forums/BlitzMax Beginners Area/Multiplayer Games?

The computer acting as a server always listens for connections. Even if you create a peer -> peer type, one of them must listen for incomming connections. Because of that, the listen command doesn not need an adress since it have no idea of what computer is going to connect.

127.0.0.1 is always pointing at your own computer. THink of it as a magic address. No matter what computer you use or if it has internet or not, 127.0.0.1 is always valid. To try the game on one computer, start the server and then launch the client and tell it to connect to 127.0.0.1. if it fails you did something wrong. :)

The port can be anything from 1 to 65535 if I remember correctly. But please use a port aboce 1024 because most ports below may be used by other programs.