Dedicated IPXNET server.

For Multiplayer: Help and meet other players

Dedicated IPXNET server.

Postby MasterM » 2009-10-01 @ 18:16

Hello everybody!

As I'm new here, first I want to thank all DosBox developers. You're doing a great job!

Now to the point. Well dosbox's IPX tunneling via ipxnet works great but it requires one machine to act as a server. Many people are behind NAT and don't know how or are unable to open appropriate ports. There's also dynamic IP issue. Passing your IP address to all your friends may be pain in the ass. ;)

So I thought why not setup a dedicated IPXNET server. As dosbox cannot run in "daemon mode" without graphics, I took ipxserver code from svn repository, modified it a bit and wrapped into a small, shiny Linux console application. And it works great! :)

So if you have any kind of problem running ipxnet server, just connect to masterm.org via ipxnet connect command. Keep in mind that it's a public system so anyone can join your game.

EDIT: Source code available here: svn://masterm.org/ipxnet (requires libsdl-net1.2-dev or equivalent package).

You can see it in action here!
Last edited by MasterM on 2010-1-01 @ 15:31, edited 1 time in total.
MasterM
Newbie
 
Posts: 7
Joined: 2009-10-01 @ 17:16

Re: Dedicated IPXNET server.

Postby HunterZ » 2009-10-01 @ 19:21

Stickied!
You're perfect, yes it's true...but without me, you're only you.
User avatar
HunterZ
l33t++
 
Posts: 5777
Joined: 2003-1-31 @ 19:04
Location: Seattle

Re: Dedicated IPXNET server.

Postby rcblanke » 2009-10-01 @ 20:06

Good idea, thanks for the effort MasterM, and keep it up!
User avatar
rcblanke
Oldbie
 
Posts: 1215
Joined: 2005-4-01 @ 09:44
Location: Round 42

Re: Dedicated IPXNET server.

Postby keropi » 2009-10-01 @ 20:17

awesome!!!!
Image
Image Dead Roland SC-55 MK2 wanted , click me for AmiBay ad!
Image Free chip burning and electronics/cable/kit build services for active VOGONS members. Just pay parts/shipping. PM me.
User avatar
keropi
l33t
 
Posts: 3404
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: Dedicated IPXNET server.

Postby h-a-l-9000 » 2009-10-01 @ 20:30

I have a standalone server program, too:

http://home.arcor.de/h-a-l-9000/tunnelserver.html
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4179
Joined: 2005-2-23 @ 00:14

Re: Dedicated IPXNET server.

Postby Replica_UK » 2009-10-23 @ 04:04

Very good work.
This really looks interesting and could have many advantages.

People that play won't have to open port as they connect to the server.
Maybe could support a large audience of players playing all sorts of games?

Keep up the good work!
Replica_UK
Newbie
 
Posts: 8
Joined: 2009-10-23 @ 03:36
Location: United Kingdom

Re: Dedicated IPXNET server.

Postby Myg » 2009-11-16 @ 16:38

MasterM, please respond to my PM. Thank you.
Myg
Newbie
 
Posts: 13
Joined: 2005-4-29 @ 17:31

Re: Dedicated IPXNET server.

Postby temptingthelure » 2009-11-16 @ 17:30

Seems to be down at the moment.
Rise of the Triad modding site!
http://rott.s4.bizhat.com
temptingthelure
Member
 
Posts: 228
Joined: 2008-12-26 @ 19:26

Re: Dedicated IPXNET server.

Postby Replica_UK » 2009-11-21 @ 16:54

It is very nice. I now have mine running on Linux Debian.

You can also connect to mine on 94.23.62.99

ipxnet connect 94.23.62.99
ipxnet connect 94.23.62.99 10000
Last edited by Replica_UK on 2010-7-20 @ 16:14, edited 1 time in total.
Replica_UK
Newbie
 
Posts: 8
Joined: 2009-10-23 @ 03:36
Location: United Kingdom

Re: Dedicated IPXNET server.

Postby Mike » 2009-11-21 @ 20:29

An excellent idea you have there, I must admit
playing multiplayer via DosBox is pretty fun, and
the DosBox emulator has improved greatly
over the years, it is now even playable with games
that take up a lot of power like Shadow Warrior
Duke Nukem 3D, Ultimate Doom,
and many others that have came out in the
mid-90's.
User avatar
Mike
Member
 
Posts: 139
Joined: 2004-7-27 @ 05:48

Re: Dedicated IPXNET server.

Postby CodeJunkie » 2009-12-26 @ 08:02

I just started a website project the other day which will be used to get people hooked up and connected either using dedicated tunneling servers or the old way where one person is the server. http://www.classicgamingarena.com. Right now it is just a testing site, but I will be making it nice and much more useful in the near future.

Any chance of getting a win32 port of this dedicated server? I have a dedicated server running just using DOSBox at the moment, but I ran into some snags with it. It runs great, but there appears to be a 16 connection limit and even though you disconnect your client, it never registers on the server so the server eventually will not accept any more connections...not good if you are trying to run a dedicated server.
User avatar
CodeJunkie
Newbie
 
Posts: 75
Joined: 2007-7-16 @ 16:23
Location: Memphis, TN

Re: Dedicated IPXNET server.

Postby h-a-l-9000 » 2009-12-26 @ 13:23

My java server works on win32 and has no such limit.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4179
Joined: 2005-2-23 @ 00:14

Re: Dedicated IPXNET server.

Postby CodeJunkie » 2009-12-26 @ 18:24

h-a-l-9000 wrote:My java server works on win32 and has no such limit.


That's cool, I may try it, although I'm thinking about trying to put together a native windows service.
User avatar
CodeJunkie
Newbie
 
Posts: 75
Joined: 2007-7-16 @ 16:23
Location: Memphis, TN

Re: Dedicated IPXNET server.

Postby DosFreak » 2009-12-26 @ 21:22

There are services out there to display to the user their external IP.
You may want to warn the user to use the same version of DOSBox for server/client
You may want to warn the user to use the same version of the game for server/client.
Game Acronym List
DosBox CVS Builds
DosBox Feature Request Thread
DosBox FAQ
PC Game Compatibility List
"People like coldplay and voted for the nazis, you can't trust people."
User avatar
DosFreak
l33t++
 
Posts: 8738
Joined: 2002-6-30 @ 16:35
Location: Your Head

Re: Dedicated IPXNET server.

Postby CodeJunkie » 2009-12-28 @ 02:22

I'm looking at the IPX server code tonight and I noticed that in ipxserver.cpp the closeSocket function is commented out. I bet this is why the clients are never disconnected from the server.

EDIT: Just to be clear I hadn't actually built the source or anything when I posted this, however I just got DB built so I'm going to look this.
User avatar
CodeJunkie
Newbie
 
Posts: 75
Joined: 2007-7-16 @ 16:23
Location: Memphis, TN

Re: Dedicated IPXNET server.

Postby MasterM » 2010-1-01 @ 14:34

OK guys I'm back. Been quite busy lately so didn't have time to reply.

@CodeJunkie: DosBox uses UDP for it's IPX tunneling. UDP is connectionless protocol so nothing need to be closed. It's a bit strange tho why dosbox on windows stops accepting new connections. Also, great idea with that website! It would be nice to have a community revolved around DOS multiplayer gaming on a bunch of dedicated ipx tunneling servers. :)

@temptingthelure: I've been moving to a new server. It's up and running again. :)

@DosFreak: I'm afraid this would require modifications to the dosbox itself. It currently doesn't support any kind of communication (like displaying warning messages ;)) through it's IPX tunneling facility.

@Myg: I've sent you a PM.

Also, source code of the IPXNET server is now available at svn://masterm.org/ipxnet. Just checkout the head revision and type 'make' to build. You'll need libsdl-net1.2-dev or similar package.
MasterM
Newbie
 
Posts: 7
Joined: 2009-10-01 @ 17:16

Re: Dedicated IPXNET server.

Postby DosFreak » 2010-1-01 @ 22:29

I meant if you want them to connect to classicgamingarena to generate a config then you could implement those features or links to those sites on that website.
Game Acronym List
DosBox CVS Builds
DosBox Feature Request Thread
DosBox FAQ
PC Game Compatibility List
"People like coldplay and voted for the nazis, you can't trust people."
User avatar
DosFreak
l33t++
 
Posts: 8738
Joined: 2002-6-30 @ 16:35
Location: Your Head

Re: Dedicated IPXNET server.

Postby Replica_UK » 2010-1-10 @ 01:01

Thanks MasterM I compiled it on Linux a few days ago works great.
Replica_UK
Newbie
 
Posts: 8
Joined: 2009-10-23 @ 03:36
Location: United Kingdom

Re: Dedicated IPXNET server.

Postby jimdigriz » 2010-1-23 @ 18:56

MasterM wrote:
So I thought why not setup a dedicated IPXNET server. As dosbox cannot run in "daemon mode" without graphics, I took ipxserver code from svn repository, modified it a bit and wrapped into a small, shiny Linux console application. And it works great! :)



Nice work, I too decided to also roll my own however it is written in Perl (so probably UNIX users only) as I felt the libsdl dependency was unnecessary; plus being perl helped adding lots of other handy features (run './ipxserver --man' for full details):

http://stuff.digriz.org.uk/ipxserver

From my reading of the code the current IPXNET servers have problems if you have two different users connecting from behind the same NATed gateway, my server handles this with no problems.

I have been testing it with Big Red Racing and had no problems, bug reports and feedback would be greatly appreciated.

Cheers
jimdigriz
Newbie
 
Posts: 1
Joined: 2010-1-23 @ 18:33

Re: Dedicated IPXNET server.

Postby CodeJunkie » 2010-4-19 @ 04:14

Update

I got a Windows based dedicated server working and it is working great so far. I still have some stuff to cleanup, but I should have it ready here soon.

I did some research and discovered that the UDP protocol was connectionless. Since there is no way to detect that a client was disconnected from the server the server would eventually run out of connections because the connection pool was not being cleared. What I did t resolve this was made the server use a TCP server along side the UDP server that accepts an initial connection from the CGA client and when the client disconnects the server tells the IPXNET code to clear the UDP connection for that TCP connection based on the host name.

I have a new client up on http://www.classicgamingarena.com.
User avatar
CodeJunkie
Newbie
 
Posts: 75
Joined: 2007-7-16 @ 16:23
Location: Memphis, TN

Next

Return to DOSBox Multiplayer

Who is online

Users browsing this forum: No registered users and 0 guests