So, for a course i'm taking, we're coding a UDP pinger in Javascript, using Node.js and Dgram. We've been given the following assignment:
Create the client code for an application. Your client should send 10 ping messages to the target UDP server.…
I'm using a shared class library (private, not a public one) that has a method that searches local networks for a Manufacturers Test box in order to commission the device my software is running on.
I am running a .Net 6 application on a Raspberry Pi…
I have a node js service that consumes messages from Kafka and processes it through various steps of transformation logic. During the processing, services use Redis and mongo for storage and caching purposes. In the end, it sends the transformed…
I'm using react-native-udp for a real Time application in react native. But application after send a few packets, stops sending packets. Because it can't receive some packets. and may be because of the port in use.
I can't set timeout for receiving…
I am trying to understand dgram with a small example of client/server. However, it seems that I can only send 1 message per run of the client. If I try to send multiple messages like in below client code, nothing gets sent.
Server code:
var PORT =…
I have a whitelist that stands between my server and my clients. I want my clients to connect to my server through my whitelist. The point of my whitelist is to ignore any UDP packets that does not have a whitelisted source. If they are in the…
I have a node app that I want to use as a whitelist for a server of mine. My server accepts udp messages. What I want to do is have some sort of white list that only allows specific ip's to reach the server. I've written a rest api that can add…
I'm building and UDP server to communicate with GPS devices. It's built in node using dgram.
I have this data to calculate its checksum:
>RGP261222120013-3520041-05908923000176700DF4400;ID=4718;#44E6;*24<
GPS device manual says something like…
I've been struggling with this for the past few days, I've been looking for a way to send data to every connected client to my UDP node.js server.
var dgram = require("dgram");
var port = 3000;
var server = dgram.createSocket("udp4");
var sockets…
So I've setup a nodejs environment to run some code on my local machine.
I'm using the datagram module to listen to a particular port number and udp address.
See below for my code.
import dgram from 'node:dgram';
//USER INPUT. be sure to update…
I am trying to use node:dgram to multicast bidirectionally on a single machine using two instances.
-----------PC-----------
send message / ........../\.......... \ receive message
receive message \ ........./..\......... /…
Problem:
I can't figure out how to correctly use Node.js and dgram to send a UDP packet to a specific IP address within the same LAN (not behind a NAT)
Attempted Solution
I found Send Broadcast datagram showcasing how to use dgram with Node.js to…
I am developing a node.js program that connects over UDP with another program running on the same machine. Currently I am sending data like this:
import dgram = require("dgram");
const client = dgram.createSocket("udp4");
//Some code to structure…