Running the Script:
python simple_port_scanner.py --target 192.168.1.1 --start_port 1 --end_port 1024 --timeout 0.5
If the target IP address format is invalid (not IPv4 or IPv6), the script will continuously prompt you to enter a valid IP address until correct input is provided.