01-13-2022, 06:31 AM
Prerequisites:
- 2 computers, which see each other, if a computer is behind NAT (that is behind a usual router) port forwarding is necessary. You can set it up in the router, if it supports UPnP, PortMapper (https://sourceforge.net/projects/upnp-portmapper/) could also be used.
- or a computer and a virtual machine inside, not that great for gaming, but enough for testing. Networking should be set up in a way that the VM and the host can ping each other, for the details consult the manual of your selected virtualization solution.
DOSBox setup:
Its nullmodem feature will be used, nullmodem emulates a serial cable directly connecting the 2 DOSBox instances. It can be setup inside a running DOSBox (good for testing), or written into the config file. There is a server and a client, the server should already run when the client connects. The DOSBox server and client role is completely unrelated to ICR2's host and client roles, the ICR2 host could be either DOSBox server or client.
By default nullmodem uses port 23, which works on Windows, after it was allowed on the firewall. On Linux (and probably on BSD as well) a port above 1023 should be used. In this example I have chosen port 1995.
The command on the server:
After the server is up, the command on the client:
Notes:
- port can be omitted if both DOSBox runs on Windows.
- if the server is behind NAT, its outer IP is needed, use your favorite "what is my IP address" page to find it.
- in case of problems have a look at the status window (the terminal showing messages). In Windows it appears automatically, in Linux you have to start DOSBox from a terminal.
- when everything is OK, the exact same lines can be added to the config file (search for serial1, and replace it)
- if serial1 is already used for other purposes, serial2 - serial4 could also be used.
ICR2 setup:
On both DOSBox, go to the "MULTIPLAYER RACE" menu. In this go to the "SETUP" submenu, and set
- the "COM PORT" to COM1 (if serial1 was used in DOSBox, otherwise the corresponding number should be used)
- the "BAUD RATE" to maximum (38400)
- the 4th item to "DIRECT CONNECT" instead of "MODEM"
- and then DONE, IRQ setting does not matter in DOSBox.
Back in the multiplayer menu, on the host press "ANSWER", on the client press "DIAL". Note: there is no message after dial to wait before pressing answer, answer can even be pressed before client presses dial.
That's it, enjoy your 2 player game!
- 2 computers, which see each other, if a computer is behind NAT (that is behind a usual router) port forwarding is necessary. You can set it up in the router, if it supports UPnP, PortMapper (https://sourceforge.net/projects/upnp-portmapper/) could also be used.
- or a computer and a virtual machine inside, not that great for gaming, but enough for testing. Networking should be set up in a way that the VM and the host can ping each other, for the details consult the manual of your selected virtualization solution.
DOSBox setup:
Its nullmodem feature will be used, nullmodem emulates a serial cable directly connecting the 2 DOSBox instances. It can be setup inside a running DOSBox (good for testing), or written into the config file. There is a server and a client, the server should already run when the client connects. The DOSBox server and client role is completely unrelated to ICR2's host and client roles, the ICR2 host could be either DOSBox server or client.
By default nullmodem uses port 23, which works on Windows, after it was allowed on the firewall. On Linux (and probably on BSD as well) a port above 1023 should be used. In this example I have chosen port 1995.
The command on the server:
Code:
serial1 nullmodem port:1995
After the server is up, the command on the client:
Code:
serial1 nullmodem server:{IP or name of the server} port:1995
Notes:
- port can be omitted if both DOSBox runs on Windows.
- if the server is behind NAT, its outer IP is needed, use your favorite "what is my IP address" page to find it.
- in case of problems have a look at the status window (the terminal showing messages). In Windows it appears automatically, in Linux you have to start DOSBox from a terminal.
- when everything is OK, the exact same lines can be added to the config file (search for serial1, and replace it)
- if serial1 is already used for other purposes, serial2 - serial4 could also be used.
ICR2 setup:
On both DOSBox, go to the "MULTIPLAYER RACE" menu. In this go to the "SETUP" submenu, and set
- the "COM PORT" to COM1 (if serial1 was used in DOSBox, otherwise the corresponding number should be used)
- the "BAUD RATE" to maximum (38400)
- the 4th item to "DIRECT CONNECT" instead of "MODEM"
- and then DONE, IRQ setting does not matter in DOSBox.
Back in the multiplayer menu, on the host press "ANSWER", on the client press "DIAL". Note: there is no message after dial to wait before pressing answer, answer can even be pressed before client presses dial.
That's it, enjoy your 2 player game!
Born in 1979 - the same year as Bourdais, Raikkonen, Champcar and Dakar.