Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Halfworks

3
Posts
A member registered 17 days ago · View creator page →

Creator of

Recent community posts

You can if you want to. It Depends™.

Can I use Godot’s built in high level api

If it meets your requirements.

or do I have to do something special?

Only if you have special requirements that the existing solution cannot meet.

How do I chose what server ip to use and port?

The server can technically listen on any unused port. Ports lower than 1024 are reserved and often require elevated/admin privileges and those higher than 49151 are ephemeral ports that are automatically assigned by the operating system for outbound connections. Ephemeral ports can be used, but there’s a higher chance that it will already be taken. Using ports [1024, 49151], or to be safe [20000, 40000], reduces the chance for conflicts. Ideally they should be exposed in a configuration file or a settings menu.

Regarding the IP address, you probably want the server to listen to local connections during development (‘127.0.0.1’, only accept connections originating from localhost) and all interfaces for public servers (‘0.0.0.0’).

The client must be pointed to the server’s IP address — localhost (127.0.0.1) if it’s on the same machine as the client, local address if on a different machine on the same network (192.168.x.y) or the server’s public address if it’s on a public network (requires port forwarding if the server is behind a router).

Note that the address ‘0.0.0.0’ is not a real IP address and is only used to tell the server to accept incoming connections from any address. Clients must still connect to the actual address of the server.

Install Instructions can be used for that.