Questions about using unreliable UDP protocol in games which requires data exchange via network.

learn more… | top users | synonyms

0
votes
1answer
92 views

Too much delay while sending object over UDP to server

I'm getting 4 sec delay when sending objects over UDP. Working on small game and trying to implement multiplayer. For now just trying to synchronize movements of 2 balls on the screen. ...
0
votes
2answers
198 views

UDP Netcode Architecture for Fighting Game

I am programming a fighting game that uses a UDP client/server architecture for multiplayer. The server can handle multiple clients, two of which (or one being the server) are playing and the rest are ...
2
votes
2answers
261 views

Kryonet usage for game networking

Im making a game where real-time data is exchanged between server and clients, and I was using java UDP sockets straight up, but I reached a point where I actually need to know if a few specific ...
2
votes
2answers
107 views

Is there a maximum delay an UDP packet can have?

I am currently implementing a real-time network protocol for a multiplayer game using UDP. I am not having any technical difficulties, but as I always have to care about late UDP packets I am ...
0
votes
2answers
113 views

How to I access “Deny” message from a Lidgren client?

I'm using the Lidgren v3 network for a UDP client/server networking model. On the server end, I'm initializing a NetServer object with the NetIncomingMessage.ConnectionApproval message type enabled. ...
6
votes
1answer
100 views

UDP server and large number of users?

My initial research showed the most people prefer to use UDP protocol and build a control code on top of it for multiplayer games. It seems like a good design at first, but I am wondering if it is ...
-1
votes
3answers
199 views

Handling packet impersonating in client-server model online game

I am designing a server-client model game library/engine. How do I, and should I even bother to handle frequent update packet possible impersonating? In my current design anyone could copy a packet ...
2
votes
3answers
336 views

How to trust a UDP Client

I'm working on a Unity project with the Lidgren UDP library for connection. I'm new to networking, so I'm not sure on general "best practices" for this area. I'm trying to figure out a good way to be ...
1
vote
5answers
385 views

How to correctly aggregate networked data into UDP packets while avoiding fragmentation

I am starting to get my feet wet with game networking, having iterated many times now on some simple 2D games. For learning purposes, I've read the fantastic Gaffer on Games networking article a ...
9
votes
2answers
1k views

UDP non blocking or a seperate thread for receiving

I am creating a multiplayer game (for under 64 player). I already decided to have a seperate thread for the network loop, but I was wondering if it would be better to create an extra thread for ...
8
votes
4answers
207 views

Sending state diffs (deltas) and unreliable connections

We're building a realtime multiplayer game, in which each player is responsible for reporting its state on every iteration of the game loop. The state updates are broadcasted using unreliable UDP. ...
0
votes
2answers
256 views

Udp VS Tcp connection for a platformer multiplayer

Tcp is connection based so it's really good for chat or login or anything that needs reliability. Udp should be used for lots of small packets like position packets... The problem is that in a game ...
0
votes
3answers
374 views

Why is my client laggy despite 60 update packets a second? [closed]

I am developing a small multiplayer game with XNA. It's a usual client-server architecture -- I have a server and many clients communicating with it through UDP (via .NET's Socket class). These ...
4
votes
2answers
2k views

UDP vs TCP in multiplayer mobile game

I'm working on a networked multiplayer game, initially for iOS. Even with TCP_NODELAY there are large fluctuations in latency. I can't be sure of the reason, but I would not be surprised if it was ...
2
votes
1answer
222 views

What is the impact of many AI enemies on state replication networking?

Imagine an online coop style FPS or TDS game where say 2-6 real players fought large amounts (20-60 concurrent) of AI enemies. Could this style of game be reasonably networked over the internet using ...
0
votes
1answer
684 views

Udp protocol for game server/client

I've been trying to get a simple client server relation using udp for about a week now, And I think it's time for me to stop trying and ask for help... I understand how TCP works and UDP too. The ...
9
votes
3answers
529 views

How to avoid being throttled?

I'm writing a networked iOS game. When sending packets with GKMatchSendDataReliable (which I assumed was UDP with their own packet reception code written) at 60 packets per second (so 16 ms between ...
2
votes
1answer
236 views

How are UDP packets verified as authentic? [closed]

Hey I'm writing a game and have the backend written using a sometimes-reliable UDP scheme. I want to verify that inbound packets are actually originating from the player specified in the packets. My ...
1
vote
2answers
145 views

MMOFPS Player Positions [closed]

I'm working on a MMO game project. I have a question about MMOFPS game architecture. (I have basic network knowladge) (MMOFPS) I want to send player position to other players(clients) and other ...
2
votes
1answer
513 views

Browser UDP Relay with TCP Websocket

I'm wondering if this is possible and what obstacles I might face. I have a game that's browser based, and since I can't send UDP packets from a browser, Can I use a plugin that the browser connects ...
3
votes
1answer
314 views

How to sync the actions in a mutiplayer game?

I connect the clients with UDP (its a peer to peer connection on a multicast network) and the clients are sending their positions in every frame (in WP7 it means the default 30 FPS) to each other. ...
9
votes
2answers
273 views

Server-side Input

Currently in my game, the client is nothing but a renderer. When input state is changed, the client sends a packet to the server and moves the player as if it were processing the input, but the ...
3
votes
1answer
231 views

How many UDP ports for an MMOFPS

I'm designing an MMOFPS. I'm not sure whether to use one UDP port for all clients or one UDP port per client. Or is there another alternative? Currently UDP is only being used for position data ...
2
votes
3answers
430 views

Game engine that allows for objects being placed in-game [closed]

I am looking for a game engine with multiplayer support that allows for players to place objects in the terrain. (eg. in TF2 one can place teleporters, etc... or in minecraft one can place blocks). I ...
2
votes
2answers
630 views

Help Decide between C#/XNA client or Java

The game runs on a client/server architecture currently setup for TCP, and the client code was built in AS3 to be web based. What we're running into is 3 problems for the client. AS3 has no ...
0
votes
2answers
227 views

In regards to applet games and UDP [closed]

I've got about a year in Java experience, and would like to set up a server and client for an applet game. However, there doesn't appear to be any tutorials out there on anything like I want to use. ...
-1
votes
1answer
3k views

Receive UDP packet in android [closed]

I'm sending UDP packet to android over a wireless network from some other software . how can I receive that in android ? should I write a client in android to get the data?
4
votes
3answers
539 views

Send regular keyboard samples OR keyboard state changes over network

Building a multi player asteroids game where ships compete with each other. Using UDP. Wanted to minimize traffic sent to server. Which would you do: Send periodic keyboard state samples every from ...
5
votes
2answers
2k views

How do MMO servers communicate with players who are behind a NAT?

I'm now planning to develop a real-time mmo in the future using udp as the transmission protocol since it has lesser overheads than tcp... I understand that between the client and the server, they ...
2
votes
1answer
842 views

Real-time UDP multiplayer games: ping measurement?

In real-time multiplayer games that use UDP for the actual game (CS:S, UT, etc.), how is network latency (ping) measured? More specifically, how do you find out how long ago a UDP packet was sent? ...
0
votes
2answers
3k views

Unable to connect to UDP server using ip as hostname

i have a little promblem. When i connect to my UDP server using localhost as a hostname, everything goes fine, but when i use my ip as a hostname, the client cant connect to the server. What could ...
9
votes
3answers
719 views

How do I prevent identity spoofing in a multiplayer game?

I'm thinking about clients spoofing IP addresses, tricking other clients that they are the server; that sort of stuff. (I don't know much about this, so if this is completely wrong, please correct ...