Questions tagged [udp]
Questions about using unreliable UDP protocol in games which requires data exchange via network.
83 questions
0
votes
0
answers
66
views
How can I get a response back from my server running a udp socket between my server and home?
I have a c# udp socket I'm trying to send data from to my home. The server socket is hosted at aws, and the client is at my house. I modified the code from the following GitHub to send a response back ...
0
votes
0
answers
114
views
How to choose what type of server to use when creating an online multiplayer game?
I want to develop an online multiplayer game using the Scala language. I am quite new to programming; I have developed some simple multiplayer games (think snake, pong), but they cannot be played ...
0
votes
0
answers
28
views
TCP vs UDP for Initial World State [duplicate]
I'm currently designing a fast paced multiplayer game with up to 6 concurrent players.
How should I send the client the initial world state from the server before the game starts? (such as the list of ...
0
votes
0
answers
901
views
UDP authentication
How to check if the sender of a udp packet is authenticated? I think sending an authorization token in each packet is slow. So my second implementation is this: the network part will consist of one ...
2
votes
1
answer
377
views
Sandbox game: TCP or UDP
I know that UDP and TCP are not to be used at the same time, so I should only use one. I have read in this site that TCP should be used for a sandbox game. The problem is, My game is going to have ...
3
votes
1
answer
105
views
Handling acks during 1+ second packet loss with Glenn Fiedler's Reliable UDP Solution
I've read through Glenn Fiedler's awesome guide on Reliability over UDP and I'm currently working on my own implementation for fun and learning purposes.
One pretty cool piece of Glenn's guide is that ...
0
votes
2
answers
917
views
Multiple small UDP packets vs One big constant UPD packet
I'm making a MMO Bullet Hell game on Game Maker Studio 2 with a node.js server and I'm already able to receive and send information through UDP connections. I NEED to keep the server as fast as ...
0
votes
0
answers
69
views
Advices on multiplayer implementation
I am developing a top down shooter and my singleplayer is pratically finished so now I want to move on to develop multiplayer but I have some questions and I am seeking for some advices.
In my game a ...
2
votes
0
answers
226
views
C# UDP Multiplayer Networking - issue with choppiness and consistency
I know I've done this incorrectly, but I don't know what the right way is.
Right now I have two clients that connect to a server. Each tick the players send a packet of information containing their ...
0
votes
1
answer
479
views
Multiplayer network architecture - why do we need to verify local movements?
I'm messing around with a 2D game using UDP. I've read some books and articles on the logic of a dedicated server to clients multiplayer game and I can't wrap my head around one thing:
What I've read:...
1
vote
0
answers
186
views
Client-side Prediction Divergence with Input Packets and Time Differences | Multiplayer FPS
I am running into a problem while implementing client-side prediction in my multiplayer FPS. I'm not entirely sure if I've completely and correctly understood the concepts. I have read the articles ...
0
votes
1
answer
2k
views
TCP vs. Reliable UDP? Sending Reliable Packets in Fast-paced Multiplayer Games?
I'm currently working on a networking framework for Unity3D in order to simplify making multiplayer games. I'm using UDP for any kind of synchronisation and unimportant data.
My question is: how do ...
0
votes
1
answer
5k
views
Creating A UDP Game Server
I am currently creating a game in need of networking i.e. server and clients. I have basic experience with socket programming and am able to transfer data between two machines via UDP sockets using ...
0
votes
2
answers
1k
views
Should I create thread for both UDP and TCP?
So I have TCP connection for stuff like leveing, player info, etc..And I have UDP datagram for stuff like player position, rotation, etc..Should I create new thread for both TCP and UDP on both client ...
0
votes
1
answer
448
views
Connecting clients with UDP and WebSocket connections
I'm in the process of making a physics intensive multiplayer game. Naturally I use a UDP to transfer packets regarding rigidbodies between client and an authoritative server.
However non-essential ...
1
vote
1
answer
310
views
Why can I only connect one client to my server?
I am currently working on a Udp server and client system, where I worked out a way to "verify" which user is sending the updates. Essentially, the very first package they send is "blank", which the ...
1
vote
0
answers
1k
views
Using UDP vs Websockets
I am running a Unity Game on a PC (for development purposes) and then on an Android phone (for production). I need to send data to the Game continuously from a WiFi enabled microcontroller (Esp32). Is ...
2
votes
1
answer
691
views
How to properly handle sending arrow-key movement data to a authoritative server?
I've made a little C# server which receives UDP packets and shows me the incoming information. I want to make an authoritative server in C# which simulates character movement and interaction in a 2D ...
-1
votes
1
answer
405
views
Getting the same message while using Facepunch.Steamworks
I use Facepunch.Steamworks for P2P game made in Unity, so I send packets through it(UnreliableNoDelay sendtype), but I've got a problem, since I send message like this:
Move:0
and get this:
Move:00,...
2
votes
1
answer
360
views
RTS game: How to handle disconnects in a fully connected peer to peer architecture?
I'm currently working on a game in which I am considering implementing a networking architecture as described in this article: http://www.gamasutra.com/view/feature/131503/...
5
votes
1
answer
442
views
Will TCP really affects UDP if used in different context?
I have read some questions about using both TCP and UDP in multiplayer game, such as Does it make sense to use both TCP and UDP at once? and Is UDP still better than TCP for data-heavy realtime games?....
1
vote
1
answer
388
views
Network limitation in multiplayer game
I have a multiplayer cooperative game (PVE) in where there can be up to 200 enemies at a time (somewhere around that) and I was wondering how devs generally synchronize these? I already have packets ...
0
votes
0
answers
391
views
Duplicate packets and termination of packets in multiplayer game
I'm making a multiplayer game (lazertag) with real hardware.
After hours of research, I'm choosing the UDP instead of the TCP protocol to exchange data.
Because of how unreliable UDP is and because ...
0
votes
0
answers
669
views
How to reduce server traffic for 100+ multiplayers game?
I'm working on fast-paced multiplayer game which has 100+ players in single session.
To sync entire game state to each player, server should send massive data if I did not any compression:
...
0
votes
2
answers
384
views
Latency issue on multiplayer game networking
I am currently writing a 2D top-down shooting multiplayer game using Java.
I have a game loop at the client-side that does the following in order in each game tick (The client is running in a tick ...
1
vote
1
answer
2k
views
udp over cellular networks? [closed]
I'm starting to build a multiplayer iOS game using UDP. I want the game to be playable over cellular networks, but I can't really find that much information on it. Many people say that it's dependent ...
3
votes
1
answer
1k
views
What is a reasonable bandwidth usage for a RT multiplayer game? [closed]
My game uses UDP communication only.
Meaning: after the lobby connect (performed by Google Play Services), not a single TCP transmission is made. Only unreliable messages are used.
The game is ...
16
votes
4
answers
9k
views
Acknowledgement reliability using UDP
I have a question about UDP. For context, I'm working on a real-time action game.
I've read quite a bit about the differences between UDP and TCP and I feel I understand them quite well, but there's ...
5
votes
3
answers
2k
views
Synchronizing over UDP
I have two apps communicating over UDP. One of the apps is a remote control and the other is a robot.
When the robot has some new data, for example a new sensor ...
0
votes
1
answer
390
views
Handling Player "sessions" on a UDP based server
I've been building a UDP server and have hit a bit of a stumbling point. Since UDP is not a persisted connection, there really isn't a way for me to track if the Player has left the current session/...
0
votes
2
answers
2k
views
Sending Vector3 from Unity to custom C# server
I'm working on a multiplayer game in which the server is a custom C# server.
What I want to do is to store the position of each player in my database.
In my case I'm sending Vector3 as an object ...
2
votes
2
answers
3k
views
Network protocol for chat -- UDP or TCP
I'm trying to develop a fast-paced multiplayer game.
Now I'm using UDP as a transport-layer protocol to communicate between clients and server. But what if I want to implement a chat? Should I send ...
3
votes
1
answer
3k
views
How to organize messages queue in a fast-paced multiplayer game
I'm trying to develop a fast-paced multiplayer game. I decided to build my own protocol over UDP and now I'm stuck with the following question.
The idea of the protocol is very basic and it's similar ...
3
votes
1
answer
1k
views
UDP server in unity not working
I know there are a lot of UDP examples out there, but I really need to know specifically what I am doing wrong. I have Wireshark monitoring my data traffic and according to that program Unity is not ...
1
vote
0
answers
138
views
UDP client code throwing a very nonspecific exception
so I'm writing a UDP server and client on a couple of the machines in my virtual reality environment to allow (in this case) data from the location in the environment to trigger some air nozzles. The ...
15
votes
4
answers
10k
views
Does it make sense to use both TCP and UDP at once?
After reading Is UDP still better than TCP for data-heavy realtime games?, I'm wondering if it makes sense to use both TCP and UDP at the same time, but for different things:
TCP for sending ...
80
votes
11
answers
37k
views
Is UDP still better than TCP for data-heavy realtime games?
I know that UDP is usually recommended for real-time multiplayer games with high data usage.
Most articles are serval years old, and since ~80% of all data transmitted on the internet is TCP, a lot ...
0
votes
1
answer
193
views
Send OpenGL video flux via UDP [closed]
It is possible to send the video flux of an OpenGL desktop app via UDP on Linux ? I looked up FBO and off-screen rendering but I still can't figure out how to extract the video flux and send it.
I'm ...
1
vote
0
answers
130
views
Extrapolation - synchronize destination point on a second device while moving
First of all, I read all of the Valve and Gaffer articles but I still have no clue, how to achieve my goal.
I am creating a UDP multiplayer game with a lot of physics (knockbacks, attacks). Packets ...
1
vote
0
answers
216
views
Host Migration (P2P) with RTMFP and AS3
I was wondering if this is a possibility with RTMFP since it acts like UDP/P2P..
Host Migration
Player A starts and host a game..
Player B and C connects..
Player A quits..
Player B is now assigned ...
2
votes
2
answers
2k
views
Do I need more than one UDP socket on the server?
I'm trying to make a UDP game server using the SDL_net library. This library offers SocketSets which are, according to the documentation, an analogy to the select ...
1
vote
1
answer
466
views
How do I keep 1v1 player positions consistent over UDP on Kryonet?
I have a server which is simple:
When two connections comes in, it opens a game room, pass their connections to it and runs a thread with a gameloop. (Everything is running on Kryonet)
So... I made ...
0
votes
2
answers
745
views
Simple mobile multiplayer game. TCP/UDP? [duplicate]
I'm tying to dive into multiplayer game programming.
The game is quite simple, it's a 2D scroller mobile game, the player need to touch the screen in order to move 1 step and it could contain up to 4 ...
6
votes
3
answers
4k
views
UDP packet reliability and re-sending
Like most people on this exchange concerned with UDP client server connections, I've gone through the Gaffer on Games article about implementing reliability. I understand how the ordering and acks and ...
5
votes
0
answers
2k
views
Unity3D LLAPI and Pyhton UDP communication
I need a Unity3D game on Android to receive UDP packages from a Python script running on a different device.
Using System.Net is not (yet) an option, as it is only supported on Android with a valid ...
2
votes
2
answers
5k
views
Networking with UDP, should I keep sockets open on the server
I am working on making a 2D platforming game that will have multiplayer functionality. Over the last few days, I have done a lot of reading regarding how to deal with the networking, and believe that ...
7
votes
1
answer
9k
views
Packet size vs packet frequency
I am making a multiplayer game in Java that uses a client-server model, where all important decisions are made by the server and communicated to all clients over UDP. Currently the clients and the ...
0
votes
2
answers
7k
views
How to send object transform position coordinates over UDP from Unity 3D
I'm trying to send the x, y and z coordinates of an in-game object over UDP.
I found a script in a Unity forum which should send info over UDP and as I understand it it should send the information ...
1
vote
2
answers
1k
views
TCP For RTS Game?
My RTS game abides by the lockstep system so keeping everyone up to date is import and guaranteeing the safe arrival of packets would make my life a lot easier. With that said, I still need decent ...
0
votes
1
answer
1k
views
How to estimate number or packets required to sent per second in a multiplayer lockstep RTS game?
Considered a typical lockstep implementation, what's a solid rate to send packets at for UDP protocol that games can start with in the beginning?
If anyone has experience in this field, I'd like to ...