Because each segment of the IP address must be up to 3 digits
So, define a string "192.168.1.1" and for loop the entire string.
Separated by '.', if there is one character before '.', add two 0s, and if there are two characters, add 1 0.
The general idea is like this