UDP problems

From: Matti Paalanen (maugister_at_saunalahti.fi)
Date: 01/31/04


Date: 31 Jan 2004 05:32:30 -0800

Greetings!

I have question regarding udp-communications.

I've made a simple Gravity Force -style game with netgame option using
UDP but I'm having strange problems with connections. I first tested
the network-game by spawning two different instances of the game
program on my computer and then made the connection between them using
my local ip. Game worked fine.

But when I try to play the game with friends over internet, strange
problems evolve: When a friend of mine hosts the game and opens a
port, messages I send arrive safely without any problems, but none of
the messages he sends arrive to my end. The host checks the ip from
the first arriving packet and uses it in the communication.
(DatagramPacket in and in.getAddress()) The port all clients are using
as the receiving one is 44444 and this is hardcoded into server also.

Well, we tried different combinations with a few friends, and then
suddenly two of them were able to estabilish communication and were
able to play the game normally. Two other couldn't get any of the
messages to arrive.

I also made TCP version, and none of us had any problems with
connections, but the game was of course pretty laggy, so UDP is the
only reasonable choice.

Another weird thing (at least I think it's weird) is that I can ping
and traceroute the friends from whom i can't receive any packets, and
they can ping and traceroute me.

So what would be the best way to advance from here? My software
firewall never complains about any messages, so it's quite evident
that the messages stop at my friends host when going outwards, or at
my host before coming to my adsl-modem. I don't know much about
restrictions and port-politics, so should I change the port numbers or
what would be the reason for this kind of lack blocking? Is it common
that UDP traffic is completely cut off this way?

-Matti Paalanen



Relevant Pages

  • Re: Info about Comotion / Gremlins
    ... board to make an old game work without it's cabinet. ... the original logic board set is removed by the machine's operator. ... +5 on pin 16 and ground on pin 8. ... Identify all the +5 and ground connections and get a ...
    (rec.games.video.arcade.collecting)
  • Re: Bounty Hunter Gottlieb System 80a Help
    ... when the game doesn't boot. ... the slam switch in the coin door in order to get it to boot up. ... I noticed the right pop bumper is dead again. ... I'm going to reflow the solder connections on the daughter ...
    (rec.games.pinball)
  • Re: Access violation on a WinXP gameserver program
    ... >>can crash their game server reliably then they need to fix it. ... > mine got me a debug build of the server and some friends of mine play. ... Sounds like you need a firewall to block unwanted connections. ... during the early part of the connection then write the filtering proxy ...
    (comp.programming)
  • Re: gottlieb genesis start-up issues
    ... header for the +5vdc connections on the power supply. ... So then I hooked up the display connector and fired ... game, which is what I am presuming. ...
    (rec.games.pinball)
  • Re: UDP problems
    ... > I've made a simple Gravity Force -style game with netgame option using ... > UDP but I'm having strange problems with connections. ... > But when I try to play the game with friends over internet, ... > ) The port all clients are using ...
    (comp.lang.java.programmer)