{"id":18644834,"url":"https://github.com/zuruoke/udp-server-with-nodejs","last_synced_at":"2025-11-05T02:30:34.869Z","repository":{"id":113055931,"uuid":"570523275","full_name":"zuruoke/udp-server-with-nodejs","owner":"zuruoke","description":"Layer 4 User Datagram Protocol (UDP) Transport Layer Server with Nodejs","archived":false,"fork":false,"pushed_at":"2022-11-25T12:53:23.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T11:32:07.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zuruoke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-25T11:51:07.000Z","updated_at":"2022-11-25T12:49:13.000Z","dependencies_parsed_at":"2023-05-03T23:30:52.773Z","dependency_job_id":null,"html_url":"https://github.com/zuruoke/udp-server-with-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuruoke%2Fudp-server-with-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuruoke%2Fudp-server-with-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuruoke%2Fudp-server-with-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuruoke%2Fudp-server-with-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuruoke","download_url":"https://codeload.github.com/zuruoke/udp-server-with-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449541,"owners_count":19640532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T06:13:47.133Z","updated_at":"2025-11-05T02:30:34.822Z","avatar_url":"https://github.com/zuruoke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Datagram Protocol (UDP) Server with Nodejs\n\n![version](https://img.shields.io/badge/version-v1.0.0-green.svg?style=plastic)\n![nodejs](https://img.shields.io/badge/nodejs-v17.0.1-green.svg?style=plastic)\n![license](https://img.shields.io/badge/license-CC_BY--NC-green.svg?style=plastic)\n\nAn Open Source project that utilizes a Layer 4 Transport Protocol to build a Server using a User Datagram Protocol (UDP) written in Nodejs\n\n## Run\n\n- First of all, clone this repo\n\n      git clone https://github.com/zuruoke/udp-server-with-nodejs\n\n### Server\n\n- Download the dependencies\n\n      npm install\n\n- Start the Server, _use localhost as 127.0.0.1 and chose a port to where your server will listen at_\n\n      npm start [port] [localhost]\n\n### Client\n\nIf you are using a UNIX-based or a Windows-based system, you should have a computer networking utility tool **Netcat**, which can be used to establish network connection at the layer 4 level (Transport Layer).\n\nHere we will use it as our UDP client\n\n- Open your bash or shell terminal and enter this command to connect to the remote server\n\n      nc -u 127.0.0.1 [port]\n\n  where the -u signify that the transport protocol to be used is udp, and the localhost address and port points to the server running\n\n- Send a message to the client\n\n  after connecting to the server, an input session is activated, so you can type any message and press enter to send\n\n      [your home directory] ~ % nc -u 127.0.0.1 5500\n      this is my first message\n      this is my second message\n\nAnd you're all Set!! The running server gets this message and print to the console\n\n    Got this message: this is my first message and metadata: [object Object]\n    Got this message: this is my second message and metadata: [object Object]\n\n## References\n\nTo know more about User Datagram Protocol (UDP), see the following references:\n\n- https://www.khanacademy.org/computing/computers-and-internet/xcae6f4a7ff015e7d:the-internet/xcae6f4a7ff015e7d:transporting-packets/a/user-datagram-protocol-udp\n- https://www.cloudflare.com/learning/ddos/glossary/user-datagram-protocol-udp/\n- https://www.fortinet.com/resources/cyberglossary/user-datagram-protocol-udp\n- https://www.geeksforgeeks.org/differences-between-tcp-and-udp/\n- https://www.udemy.com/course/fundamentals-of-networking-for-effective-backend-design/learn/lecture/31162470#overview\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuruoke%2Fudp-server-with-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuruoke%2Fudp-server-with-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuruoke%2Fudp-server-with-nodejs/lists"}