PLAYBOOK · NETWORK TOOL
Testing a homemade network tool on macOS and Ubuntu
Raw socket experiment
Swagnik describes testing a homemade network tool in July 2024. The writer compared how macOS and Ubuntu handled the same data. They used a 20-byte header and an 8-byte message, making 28 bytes together.
Swagnik first tested copied code before changing their own tool. They ran the sender and receiver in separate terminals. The writer says macOS kept adding an extra header, the information before a network message. They checked the manual for the right operating system and changed the code for macOS. Their test set the identification value to 11. They compared the sent bytes with captured traffic. The writer says the receiver got a reply on both machines. Our suggestion: This suits learners who want to test a network tool across operating systems.
- Swagnik used a 20-byte header and an 8-byte message.
- The writer says the full test message contained 28 bytes.
- Swagnik set the identification value to 11 for this test.
Source: Swagnik · Raw socket experiment · checked 2026-12-02