Alternatively, I have created a Dedicated Server Program (a batch file) which does all the work listed in the post (and more!)
You can download that here! I am not sure if it works on x86 machines, anyone is welcome to try!
Oh yeah, here are some fully fledged server launchers that you can try and see if you like, if you're feeling lazy or just dont know what you're doing, these are a good option!
limmek's Windows Server Tool is an excellent program with a GUI instead of being completely text base (a console is included)
You can download it here: viewtopic.php?f=133&t=54095
NOTE: If you want to host your own online dedicated server, you will need to port forward through your router. This is not a part of this tutorial. You will find plenty of port forwarding guides (including ones for factorio) that you can use.
Let's make a freakin' server!--Step 1--
Find where your Factorio EXE is located. Have that open in a Windows Explorer window.
Open your text/code editing program of choice. I reccomend Notepad++, but regular Notepad will do.
Save the file IN THE FACTORIO EXE DIRECTORY. Remeber to save it as a .bat file (remeber to switch it from *.txt to All Files). It doesn't need to be named anything specific. You should see factorio.exe and the server batch file in the same folder together. THIS IS VERY IMPORTANT.
Choose a save that you want to play with. To do this, either launch the game and create a save quickly OR copy and paste a save from the internet or another computer. Place this where your Factorio saves live (this is usally C:\Users\[Your Username]\AppData\Roaming\Factorio\Saves)
Time to make the batch file work! this is the code you will need!
Code: Select all
factorio.exe --save-file [save file path here] pause
or where ever you saved your file. Just make sure it includes the save file ZIP at the end or else it wont work!
The pause command allows you to see where the program failed if it does.
Run the batch file. If everything is correct, then it should run correctly. The window should remain open and you will be able to type.
Connect to the server using a different computer. Go Play>Multiplayer>Connect to Server and use the dedicated server's IPv4 address, followed by the port (usually 34197) and you should be able to connect.
The IP should look like this [Your IPv4 Address]:34197
To get the IPv4, open up Command Prompt and type:
Code: Select all
If it all worked, then Congratulations, you did it! You now have your very own LAN dedicated server!