Struggling to find the correct phrase to look up similar questions so apologies if it's a duplicate.
I have the following code generated from Postman to send a simple HTTP request to 192.168.0.18. I am looking to create a file that will send the same request to every single IP from 192.168.0.10 through to 192.168.0.100 (or any other ranges) with the caveat being that there won't be a device on every IP
For reference, this is just a little gimmick in our training room. The laptops will respond to this request however there could be any number of laptops in the room at any one time, with any IP address in this range and this is a factor that I cannot change due to other limitations.
Thanks in advance
Request:
import requests
url = "http://192.168.0.18:4430/titan/set/2/Panel/Screen/LampIntensity"
payload="100"
headers = {
'Content-Type': 'text/plain'
}
response = requests.request("POST", url, headers=headers, data=payload)