Operating Scenario
You have a portable web server that you move from school to school.
When you arrive at a school, you connect it to the school's LAN
which assigns a network address. This address is different every time
you connect to a school network.
There is no keyboard, mouse, or screen connected to the server.
The students need to know the IP address of the server so they can connect to
it with a web browser.
Goal
Develop a method (Python programs) to obtain the web server's address.
Requirements/Design
- use UDP
- use broadcast (multiplex?)
- create three Python programs
- program 1
- runs on the web server
- starts when the server boots
- runs as a linux service (never stops)
- listens for a UDP message requesting the server's address
- broadcasts the server's address in a UDP message
- Program 2
- runs anywhere
- started by the user
- broadcasts a UDP message requesting the web server's address
- Program 3
- runs anywhere
- started by the user
- listens for broadcast messages from the web server
- displays the web server's address
Try This
1. create a Tkinter interface for the programs