SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
Creating UDP Broadcast App
Using Python Socket
on Windows & Linux
Dony Riyanto
June 2021
Telegram: @donyriyanto
slideshare.net/donyriyanto
Creating UDP Broadcast App Using Python Socket on WIndows & Linux
Receiver.py
Notes:
• SO_REUSEPORT enable port reusage so we will be able to run
multiple clients and servers on single (host, port). Do not use
socket.SO_REUSEADDR except you using linux(kernel<3.9): goto
https://stackoverflow.com/questions/14388706/how-do-so-
reuseaddr-and-so-reuseport-differ for more information.
• For linux hosts all sockets that want to share the same address and
port combination must belong to processes that share the same
effective user ID! So, on linux(kernel>=3.9) you have to run multiple
servers and clients under one user to share the same (host, port).
Thanks to @stevenreddie
• For Windows OS, it is important to bind it to network interface IP.
Sender.py
Important for Windows OS
Testing
Local Laptop
Windows 7
192.168.1.19
PC
Windows 7
192.168.1.12
VM in PC
Ubuntu 18
192.168.1.11
(bridge)
Local Area Network
Succesfully on the same host
Testing
Local Laptop
Windows 7
192.168.1.19
PC
Windows 7
192.168.1.12
VM in PC
Ubuntu 18
192.168.1.11
(bridge)
Local Area Network
Succesfully on the different host, same OS version, LAN over WiFi
Testing
Local Laptop
Windows 7
192.168.1.19
PC
Windows 7
192.168.1.12
VM in PC
Ubuntu 18
192.168.1.11
(bridge)
Local Area Network
Succesfully on the different host, different OS, accros bridge network driver, LAN over WiFi

More Related Content

PPTX
Introduction to ansible
PDF
PPTX
DoS or DDoS attack
PPTX
Easiest way to start with Shell scripting
PDF
Introduction to container based virtualization with docker
PPTX
PDF
The internals and the latest trends of container runtimes
PPTX
Power shell training
Introduction to ansible
DoS or DDoS attack
Easiest way to start with Shell scripting
Introduction to container based virtualization with docker
The internals and the latest trends of container runtimes
Power shell training

What's hot (20)

PPTX
Monolithic architecture
PPTX
Introduction To Power Shell
PDF
Docker 101: Introduction to Docker
PPTX
Terminal Commands (Linux - ubuntu) (part-1)
PPT
remote method invocation
PPTX
Docker and Microservice
PPTX
Windows Hacking
PDF
Introduction to Docker
PDF
Docker Introduction
PDF
Architecture Of The Linux Kernel
PDF
GitHub Actions in action
PDF
Docker and the Linux Kernel
PDF
Pen-Testing with Metasploit
PPTX
Metasploit
PPTX
Systemd 간략하게 정리하기
PPT
DDoS Attack PPT by Nitin Bisht
PDF
PDF
Nodejs Explained with Examples
PPTX
Denial of Service Attacks (DoS/DDoS)
PDF
Socket Programming In Python
Monolithic architecture
Introduction To Power Shell
Docker 101: Introduction to Docker
Terminal Commands (Linux - ubuntu) (part-1)
remote method invocation
Docker and Microservice
Windows Hacking
Introduction to Docker
Docker Introduction
Architecture Of The Linux Kernel
GitHub Actions in action
Docker and the Linux Kernel
Pen-Testing with Metasploit
Metasploit
Systemd 간략하게 정리하기
DDoS Attack PPT by Nitin Bisht
Nodejs Explained with Examples
Denial of Service Attacks (DoS/DDoS)
Socket Programming In Python
Ad

Similar to Creating UDP Broadcast App Using Python Socket on WIndows & Linux (20)

PDF
Dotnet network prog_chap07
PPTX
Docker network Present in VietNam DockerDay 2015
PDF
Sharing your-internet-connection-on-linux
PDF
Tutorial mikrotik step by step anung muhandanu
PDF
Tcpip Intro
PPTX
Network Programming-Python-13-8-2023.pptx
PDF
FreeSWITCH on Docker
PDF
FreeSWITCH on Docker
PDF
Microservices using relocatable Docker containers
PDF
An introduction to workflow-based programming with Node-RED
PDF
FreeBSD, ipfw and OpenVPN 2.1 server
PPTX
Windows 10
PPTX
IPAddressing .pptx
PDF
Real-time Online Multiplayer with Godot Engine
PDF
Put the dev back in devops - Cloud-native at local speed! - RH Summit 19
PDF
JDD2014: Docker.io - versioned linux containers for JVM devops - Dominik Dorn
PDF
Userspace drivers-2016
PDF
Installation Of An Iso Image Dvd
PPT
Putting an Apple IIgs BBS on the internet
PDF
Tutorial mikrotik step by step
Dotnet network prog_chap07
Docker network Present in VietNam DockerDay 2015
Sharing your-internet-connection-on-linux
Tutorial mikrotik step by step anung muhandanu
Tcpip Intro
Network Programming-Python-13-8-2023.pptx
FreeSWITCH on Docker
FreeSWITCH on Docker
Microservices using relocatable Docker containers
An introduction to workflow-based programming with Node-RED
FreeBSD, ipfw and OpenVPN 2.1 server
Windows 10
IPAddressing .pptx
Real-time Online Multiplayer with Godot Engine
Put the dev back in devops - Cloud-native at local speed! - RH Summit 19
JDD2014: Docker.io - versioned linux containers for JVM devops - Dominik Dorn
Userspace drivers-2016
Installation Of An Iso Image Dvd
Putting an Apple IIgs BBS on the internet
Tutorial mikrotik step by step
Ad

More from Dony Riyanto (20)

PDF
KNIME For Enterprise Data Analytics.pdf
PDF
Implementasi Teknologi Industri 4.0 pada TNI AD
PDF
Blockchain untuk Big Data
PDF
Mengenal ROS2 Galactic
PDF
Membuat Desain Roket Amatir dan Menjalankan Simulasi
PDF
Desain ground control & Sistem Pendukung untuk Male UAV/UCAV
PDF
Application Performance, Test and Monitoring
PDF
Cloud Service Design for Computer Vision, Image & Video Processing+Analytics
PDF
RealNetworks - SAFR Platform Whitepaper
PDF
Dl6960 Demo Software User's Guide v1.4
PDF
Review of Existing Response System & Technology.
PDF
Beberapa Studi Kasus Fintech Micro Payment
PDF
Rencana Pengembangan REST API dan Microservice pada MONEVRISBANG
PDF
Implementasi Full Textsearch pada Database
PDF
Beberapa strategi implementasi open api untuk legacy system existing app
PDF
Pengenalan Big Data untuk Pemula
PDF
Introduction to BACnet: Building Automation & Control Network
PDF
Enterprise Microservices
PPTX
Edge Exploration of QR Code Technology Implementation
PPTX
GUGUS-a mini program prototype
KNIME For Enterprise Data Analytics.pdf
Implementasi Teknologi Industri 4.0 pada TNI AD
Blockchain untuk Big Data
Mengenal ROS2 Galactic
Membuat Desain Roket Amatir dan Menjalankan Simulasi
Desain ground control & Sistem Pendukung untuk Male UAV/UCAV
Application Performance, Test and Monitoring
Cloud Service Design for Computer Vision, Image & Video Processing+Analytics
RealNetworks - SAFR Platform Whitepaper
Dl6960 Demo Software User's Guide v1.4
Review of Existing Response System & Technology.
Beberapa Studi Kasus Fintech Micro Payment
Rencana Pengembangan REST API dan Microservice pada MONEVRISBANG
Implementasi Full Textsearch pada Database
Beberapa strategi implementasi open api untuk legacy system existing app
Pengenalan Big Data untuk Pemula
Introduction to BACnet: Building Automation & Control Network
Enterprise Microservices
Edge Exploration of QR Code Technology Implementation
GUGUS-a mini program prototype

Recently uploaded (20)

PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
System and Network Administration Chapter 2
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
ai tools demonstartion for schools and inter college
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
medical staffing services at VALiNTRY
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
assetexplorer- product-overview - presentation
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Operating system designcfffgfgggggggvggggggggg
Softaken Excel to vCard Converter Software.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
How to Choose the Right IT Partner for Your Business in Malaysia
Computer Software and OS of computer science of grade 11.pptx
System and Network Administration Chapter 2
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
ai tools demonstartion for schools and inter college
Upgrade and Innovation Strategies for SAP ERP Customers
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Adobe Illustrator 28.6 Crack My Vision of Vector Design
medical staffing services at VALiNTRY
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
2025 Textile ERP Trends: SAP, Odoo & Oracle
assetexplorer- product-overview - presentation
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx

Creating UDP Broadcast App Using Python Socket on WIndows & Linux

  • 1. Creating UDP Broadcast App Using Python Socket on Windows & Linux Dony Riyanto June 2021 Telegram: @donyriyanto slideshare.net/donyriyanto
  • 4. Notes: • SO_REUSEPORT enable port reusage so we will be able to run multiple clients and servers on single (host, port). Do not use socket.SO_REUSEADDR except you using linux(kernel<3.9): goto https://stackoverflow.com/questions/14388706/how-do-so- reuseaddr-and-so-reuseport-differ for more information. • For linux hosts all sockets that want to share the same address and port combination must belong to processes that share the same effective user ID! So, on linux(kernel>=3.9) you have to run multiple servers and clients under one user to share the same (host, port). Thanks to @stevenreddie • For Windows OS, it is important to bind it to network interface IP.
  • 6. Testing Local Laptop Windows 7 192.168.1.19 PC Windows 7 192.168.1.12 VM in PC Ubuntu 18 192.168.1.11 (bridge) Local Area Network Succesfully on the same host
  • 7. Testing Local Laptop Windows 7 192.168.1.19 PC Windows 7 192.168.1.12 VM in PC Ubuntu 18 192.168.1.11 (bridge) Local Area Network Succesfully on the different host, same OS version, LAN over WiFi
  • 8. Testing Local Laptop Windows 7 192.168.1.19 PC Windows 7 192.168.1.12 VM in PC Ubuntu 18 192.168.1.11 (bridge) Local Area Network Succesfully on the different host, different OS, accros bridge network driver, LAN over WiFi