Using DOSBox's Nullmodem feature

For Multiplayer: Help and meet other players.

Using DOSBox's Nullmodem feature

Postby h-a-l-9000 » 2008-8-11 @ 23:52

This should be an example guide of how to use DOSBox's nullmodem feature. It allows you to play two-player games on a LAN or across the internet. The serial data that used to travel through the nullmodem cable on the DOS PCs is tunnelled through a TCP/IP connection.

Connection is established on a client-server basis. First the server is set up, then the client connects.

What you will need:

- The game installed and running properly in DOSBox
- Internet game: the IP address of the server (see http://whatismyip.com/ or similar)
- Internet game: If the server is behind a NAT router then port 23 TCP (default) or a user-chosen TCP port has to be forwarded to the computer running the server. Further help on this topic may be found here: http://www.portforward.com/
- LAN game: host name or IP of the server
- Firewalls have to be opened for the TCP port in use.

Choosing the TCP port

If the server is ran on Windows operating systems, the default (port 23) can be used which means no additional port needs to be passed to DOSBox. However, if the server runs on other OSes, especially the Unix based ones, the ports 0-1023(?) are reserved for the system. So you need to choose a port above that.

Getting to it: First start the server

In DOSBox command line, type:

serial1 nullmodem

Code: Select all
The DOSBox Status Window should show this line:

Serial1: Nullmodem server waiting for connection on port 23...

If you need to use a different TCP port (5000 in this example), write:

serial1 nullmodem port:5000

Connect the client:

serial1 nullmodem server:<IP or hostname of server>

The status window will show this line on success:
Code: Select all
Serial1: Connected to <IP or hostname of server>


For the custom TCP port, write:
serial1 nullmodem server:<IP or hostname of server> port:5000

Note: Instead of typing these in the command line, you can also set them in the [serialport] section of dosbox.conf. However this method here seems more convinient due to the dynamic nature of IP addresses. You don't have to edit dosbox.conf every time.

Now start the game.

This part differs for every game. The option needed is something like 'nullmodem game', 'direct connection', 'already connected', and some games claim to support nullmodem when choosing modem even. Some games have a special setup executable that has to be started instead of the normal one for multiplayer games.
Then choose COM1 (from serial1) as port and choose wether you start or join the game (this is independent of wether you set your DOSBox to server or client).

Troubleshooting
- There are a few older games that work better with nullmodem when using normal core.
- If you get serial overrun messages in the DOSBox Status Window and have difficulties running the game try adding rxdelay:50 to the server and client setup string. The default for this is 20, you can try other values too but much higher values are probably pointless.
- Some games are picky about their synchronization, don't run applications that produce background load when playing those.

A few of the games this can be used with:
http://www.mobygames.com/game/dos/f29-retaliator
http://www.mobygames.com/game/dos/stunt-driver

Freeware:
http://liberatedgames.com/gamelisting.php?letter=O - One must fall
Thunder Zone by Kurt Kennett (Nowhere to be found on the net? only on my harddisk?)

This list is nowhere complete. You can also try the later games like Warcraft I/II, Terminal Velocity, Armada, ...
If you run into problems with those the IPXNET probably is the better choice for now.

Suggestions for improvement of this guide are always welcome.
Last edited by h-a-l-9000 on 2009-11-17 @ 14:41, edited 1 time in total.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Using DOSBox's Nullmodem feature

Postby diego gr » 2009-5-27 @ 20:06

Do you know if it works on connecting an Windows XP PC to an Windows Vista 32bit PC?
diego gr
Newbie
 
Posts: 41
Joined: 2007-1-13 @ 22:06
Location: Brazil

Re: Using DOSBox's Nullmodem feature

Postby h-a-l-9000 » 2009-5-27 @ 20:19

It should work between anything that has a TCP/IP stack...
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Using DOSBox's Nullmodem feature

Postby diego gr » 2009-5-27 @ 21:45

Cool, thank you.
diego gr
Newbie
 
Posts: 41
Joined: 2007-1-13 @ 22:06
Location: Brazil


Return to DOSBox Multiplayer

Who is online

Users browsing this forum: No registered users and 1 guest