Classic multiplayer gaming via DOSBox - Serial and IPX tunneling
Ever since discovering that DOSBox has stable IPX and serial tunneling, I’ve been digging through my old files and rediscovering some classic multiplayer games of yesteryear with my brother (who still has the edge in C&C).
The issue with a lot of multiplayer games from 10 or 15 (or more) years ago is that they either rely on the IPX protocol for networked games or that they only support serial (modem or null-modem) connections. Pushing these over the Internet requires some trickery, in this case in the form of a tunnel to provide what appears to be a direct connection between the participant’s instances of DOSBox.
DOSBox achieves this by having one user’s setup running as a server (host), with any other participants connecting as clients - all that is required is for the host to forward a port through their firewall.

Serial or Null Modem
First we’ll look at a null modem setup, a common way of allowing two player gaming via cross-over serial cable. To configure a virtual COM port as a null modem link, the below needs to be added to dosbox.conf. The examples below assume COM1 (referred to by DOSBox as serial1. One PC will act as the host/server and the other, the client.
On the server, specify the type of serial connection and the port in the dosbox.conf file, located in ~/.dosbox/ under GNU/Linux or under the user’s profile folder under Windows (for example, C:\Users\{username}\AppData\Local\DOSBox\. The TCP port you specify will also need to be forwarded through your firewall to the host PC.. The port can be anything you like, provided it is valid and available - if using GNU/Linux, stay above the first 1024 ports.
[serial]
serial1=nullmodem port:12345
On the client, specify the type of serial connection, the IP address of the server to which you’ll be connecting, and the port used. Example below using a fake IP address and an arbitrary port number.
[serial]
serial1=nullmodem server:423.456.789.123 port=12345
Note: The host’s instance of DOSBox needs to be running before the client’s in order for the tunnel to be created successfully.
Once both host and client have started up, open up a game that supports null modem connections (for example, Command & Conquer) and head for the multiplayer section. When configuring the serial connection in your chose game, be sure to set the COM port to the number you specified earlier in dosbox.conf.


IPX
The second method is to create an IPX tunnel. Many games used the IPX protocol to support multiplayer - for example, DOOM allows up to 4 player network games via IPX.
To establish an the tunnel, the process is similar to configuring the null modem link but with a couple extra steps. First, ensure IPX is enabled in dosbox.conf with the following:
[ipx]
ipx=true
Note: If you’re compiling DOSBox under GNU/Linux, make sure that SDL net is available before doing so. The package on Debian (and Ubuntu) is called libsdl-net1.2-dev and probably something similar on other distros.
Start DOSBox and, at the prompt, start the server by running the following command on the host machine:
ipxnet startserver 12346
The number after the ipxnet startserver command is the port number that the service will use. This is a UDP port and will need to be forwarded to the host through your firewall.
Then connect clients by running the following command, specifying both the host IP address and the port being used (substitute your host’s IP and port into the below example):
ipxnet connect 423.456.789.123 12346
Once started, check the status of the IPX tunnel with the following:
ipxnet status

The connection from localhost (127.0.0.1) is the local instance of DOSBox, remote connections will appear below with their IP addresses. If there are problems creating the connection, first ensure that the host’s copy of DOSBox is running before any clients attempt to connect. Another common problem is a firewall blocking the port or the port not being correctly forwarded.
After confirming that the tunnel is established and that the client/s has/have connected, it’s time to fire up a game and test it. Under the game’s multiplayer section, select IPX and start a game.

And then…
In addition to the above two methods, there is also a way to create a link with virtual modems for software that lacks support for IPX or null modem play. I haven’t checked this out yet, but there’s a good run-down at VOGONS.
The creators of DOSBox have provided a really nice service with these tunneling options which provide a good way to re-live and share some gaming memories. I’m really pleased to be able to again play the multiplayer games that I started out with - my first experience was (IIRC) Command & Conquer linked via a null modem cable, then moving on to 4 player DOOM over a DOS-based home 10BASE2 network. Ah, the memories *sighs*. Happy gaming!

July 25th, 2010 at 16:57
[...] Journal οf Contemporary Lunacy » Blog Archive » Classic multiplayer gaming via DOSBo… [...]
August 10th, 2010 at 07:26
Nice blog post, thank you. Can you expand on the second para-graph in a little more detail plz?
August 12th, 2010 at 16:56
I would like to exchange links with your site blog.jamesmason.id.au
Is this possible?
August 12th, 2010 at 21:07
Thanks for taking the time to discuss this, I feel strongly about information and love learning more on this. If possible,it was very helpful for me.
August 14th, 2010 at 03:54
This is what I wanted! I was searching on Google since 1 hour and was really depressed as I got nothing but this post really made me happy. I just bookmarked your blog as I will not like to waste my time again on Google.
August 17th, 2010 at 21:18
I’m an email subscriber. Thanks!
August 19th, 2010 at 10:57
Thanks this made for intresting reading. I really like your wordpress theme, i continually come back here and i dont know why. I just truly like your website lol… I just read something simular to this on That Are i think they may of stolen your blog?
August 21st, 2010 at 12:51
Hello, i really want to share with you a fantastic free online game called Cozy Mir3. Its 100% free of charge to play and is just awesome… Its just under 1GB in size and the game (Legend Of Mir) was the most online game played game, with 750,000+ players before World Of Warcraft. If you have never played it, come give it a look at http://mmorpgmir3.blogspot.com/ - Dont forget to invite your friends :D
August 22nd, 2010 at 16:01
I actually love to understand some content articles that have good positive impacts on its reader and benefit by reading such write-up especially concerning Gold and the stock market. I admire these writers in sharing their views and or opinions that can enlighten the mind from the readers.
August 23rd, 2010 at 15:56
Thanks for the tip!
I am going to add your blog to my list!
August 24th, 2010 at 03:20
Thank you for your insightful comments. I hope to visit your website soon.
August 24th, 2010 at 03:40
Hey, have been looking for reviews of people who know about this, and after bbrowsing the search engines, I came to your article, and it islovely write up. Too bad I took all these days getting to your site. Saved you in my bookmarks already. I shall return pretty soon. Just keep on writing your blog will get really popular.
August 24th, 2010 at 05:17
Lots of great information and inspiration, both of which we all need, thanks for this.
August 24th, 2010 at 06:14
Hi, I want to let all of you bloggers / web users recognize about a new Search Engine called Braxea. Its pretty dam cool… It combines Google, Bing and Yahoo into one and in addition lets you search for videos on YouTube and News throughout the net. Maybe this can end up being the new Google ?
August 24th, 2010 at 22:12
I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
August 25th, 2010 at 11:42
really good article. i trust to apply some of these in my blog. thank you!
August 25th, 2010 at 15:02
You have WON-get your free Mac Book pro
August 25th, 2010 at 15:36
Hi,just found your Blog when i google something and wonder what web hosting do you use for your web site,the speed is more faster than my website, i really need to know it.will back to check it out,thanks!
August 26th, 2010 at 01:30
information provided by the dudes is very useful for us, Thanx to alllllll ¡.
August 26th, 2010 at 13:52
You are so motivational and you talk sense. That is crucial. You¡¯re an intellectual and you have got a lot of heart. I love your blogposts! Appreciate it!
August 27th, 2010 at 08:38
Just found your site on google and I think it is a shame that you are not ranked higher since this is a terrific post. To change this I decided to add your site to my RSS reader and I will try to mention you in one of my posts because you really deserv more readers when publishing content of this quality.
August 28th, 2010 at 07:44
Gogogogo Blizzard. I can hardly wait until Starcraft 2 comes out. Very entertaining post.
August 28th, 2010 at 18:49
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.
August 29th, 2010 at 00:14
Someone recommend me to visit your website, I found the informations I looked for . Thank you
August 29th, 2010 at 14:40
This is really educational, thanks
August 29th, 2010 at 21:05
The articles you have on your site are always so enjoyable to read. Good work and I bookmarked it.
August 29th, 2010 at 21:21
I want to thank you for the endeavors you have made in publishing this article. I am trusting the same best work from you in the next articles
August 31st, 2010 at 02:41
WOW!!! Nice Post!Kind Regards
August 31st, 2010 at 07:42
I just stumbleupon your blog and i must say what a fantastic website and great posts, I will bookmark your blog.Best Regards! Mark
September 1st, 2010 at 06:08
Hi. I read a few of your other posts and i wanted to say thank you for the informative posts.
September 2nd, 2010 at 06:02
Proficient, thanks for sharing this information. Looks great on my iPhone, but on the Blackberry Pearl’s browser your site comes out a little weird.I would appreciate it if you visited my blog at christian music online
September 2nd, 2010 at 16:57
You certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material.
September 2nd, 2010 at 17:00
Pretty terrific post. I found your blog and wanted to say your information seems legit. Will keep reading. Thanks. I would appreciate it if you visited my blog at
September 2nd, 2010 at 17:02
Need to subscribe to this blog, great post. Found it on bing.
September 2nd, 2010 at 17:05
hey there I just wanted to comment your blog and say that I really enjoyed reading your blog post here. It was very informative and I also digg the way you write! Keep it up and I’ll be back to read more soon mate
September 2nd, 2010 at 17:10
I’ll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)
September 2nd, 2010 at 17:14
I like what you all have to say. Very straight to the point. All in all great blog
September 2nd, 2010 at 17:19
Nice Info . Do you mind if I talk about this post in my blog. You and your blog will surely get the credit
September 2nd, 2010 at 17:22
I really like your site. Very good posts! Please continue posting such awesome cotent.
September 2nd, 2010 at 17:24
Hey this is a great post. I’m going to email this to my friends. I stumbled on this while surfing for some lyrics, I’ll be sure to visit regularly. thanks for sharing.
September 2nd, 2010 at 19:30
Just gonna commentabout this article, after reading whole of this it make me to have new goal about one important event, hope I can read more good news again from you so I bookmark your website.
September 3rd, 2010 at 12:05
I just believed i’d distribute and let you know your weblogs is beneficial for exposed the advantageous mystery.I certainly really like your weblog.Effectively, the write-up is in realism the most effective on this really worth whilst subject. I concur along with your conclusions and will consistently look forward for your arriving messages. Basically saying thanks won’t just be enough, for the phenomenal lucidity in your own writing. I will promptly pick up your rss feed to stay informed of any updates.Real do the job and a lot accomplishment within your efforts and small business tries.Anyways continue to keep up the superior perform.Thanks a ton.
September 3rd, 2010 at 20:26
Friend of mine recommend me to visit your website, I found the this what I looked for . Thank you very much
September 4th, 2010 at 05:21
I suppose there are masses of individuals like me, who stumble across various great blogs or websites by chance. Your blog appears to hold a great community and a solid blogosphere presence. Its great to hold engrossing and various positions on issues.
September 4th, 2010 at 05:50
good post, added you to my RSS reader.
September 4th, 2010 at 08:17
good post, added you to my RSS reader.
September 4th, 2010 at 10:22
Hi, Thanks for such topical article as I were able to discover here. I agree with most of what’s written the following and I am going to be coming back to this site again.
September 4th, 2010 at 12:45
This is the 1st time I have commented right here and I must say you give genuine, and top quality info for bloggers! Good job.