Posted: 27th Jun 2007 21:56
Hi all.

I'm creating an multiplayer game using tempest. But for testing reasons (having trouble to test the game with LAN over the network at home. I have to use hamachi, but it does not work. You can't join. In the client logg file you can read 'port in use'), I think I'll try to make an multiplayer system over the internet first, before I start on the LAN version. I'm at the moment using tempest for the multiplayer. And now to the questions.

1) What is the better choise of tempest and multisync for an internet game?

2) How do I solve the 'port in use' thing? Is it better to use multisync when it comes to things like this?

3) How do you make so you can join an game over the internet using one of these two?

4) How do you get an list over the current servers that are up and running?

If you know of any tutorials or examples then that would be great. I'm really in need of help with this, so please help me.
Posted: 27th Jun 2007 23:12
How do I solve the 'port in use' thing?


Examples. We'll need to see an example. If you're trying to use a port that the OS already has reserved for something else - or worse - is already using, you're going to see this error a lot.

You might want to determine if the other machine has a firewall, and if that port is blocked (or not). There are just so many possibilities... ...but MultiSync seems to be the mose efficient (and bullet-proof) way to go for now...
Posted: 29th Jun 2007 12:35
Ok. I can't show much of my code (since huge parts of the code isn't mine, because I'm working with someone), but this is what I do to join at the moment:
+ Code Snippet
if sel = 1
  sel = 0
  msge = ""
  mstate = 1
  if TJoin(msge, name$)
    menu = 0
    mstate = 0
    isHost = 0
    camMode = 1
    flush video memory
    gosub hauntedHouse
    tom = "joined"
    TPutString tom
    TSendAll
  endif
else


I know why I got the port in use thing. It's hamachi (which is a program that creats a LAN over the internet) that use the same port as the game. Anyway, do anyone know of any port I can use for the game that's propobly not used by some program? And how do you make so you get an list of servers?

EDIT:

I think the port number is 3998 or 3999.