Questions tagged [dgrams]

dgrams is a Node.JS library for sending and receiving UDP datagrams.

For detailed help, see UDP / Datagram Sockets | Node.js Documentation

22 questions
0
votes
1 answer

How to connect two mobile clients via UDP sockets

I want to make a UDP connection for voice calls between two applications. To decrease transactions over the server, I need to send the UDP packet directly from one client to another client without sending packets over the server. But I faced the…
MESepehr
  • 758
  • 6
  • 19
0
votes
1 answer

How to receive UDP messages in Cordova application on mobile device?

I have been programming for 2 months now and I want to make a mobile app, which will comunicate with a server on a PC in the same LAN. I am using NodeJS Dgram module and Socket.io. I am broadcasting messages on a server and I want to see those…
0
votes
0 answers

Trouble Catching a UDP packet DGRAM

I have an arduino on LAN emitting UDP packets with some data. From my laptop using an ssh session with a Pi, both my laptop and Pi are also on the LAN, when I run: sudo tcpdump -n udp port 8888 Terminal registers the UDP packets 18:14:44.868050 IP…
AustinFoss
  • 385
  • 5
  • 13
0
votes
1 answer

PM2 with NodeJS dgram

I am trying to run a NodeJS application(udp_recv) using pm2. The application starts on boot via pm2 startup and pm2 save. However, the dgram gives me an error saying - server error: 1|udp_recv | Error: bind EADDRNOTAVAIL…
0
votes
1 answer

Fixed port for sending messages with dgram

I'm using node dgram to send OSC messages to a device. The device sends its responses to the port where the request came from (I can't change this). Now my problem is that I don't know which port dgram will use to send the message, so I can't bind…
cracanut
  • 3
  • 2
0
votes
1 answer

Fake UDP packet source address on localhost only

I am working on a way to force the game Alien vs. Predator 2 to connect to specific IP address. The reason is, that quite often the server is reachable, but the UDP broadcast the game sends to discover it do not reach the server. On localhost, this…
Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778
-1
votes
1 answer

School wifi partially blocks UDP server

I am making a multiplayer game that is UDP with node.js (dgram for UDP) and unity as the client (uses c#'s sockets). I originally had a web-socket server, but remade it to be UDP for more competitive response times. It works perfectly at my house…
1
2