Use Factorio server hosting to play with other players, whether local or public. Once you've found a server that interests you, you need to join it, which can be done through buttons in the game menu or by using the server's IP address to connect directly (via console, etc.).