CodePudding user response:
255.255.255.255 representative:Subnet mask is a 32-bit address, used to shield part of the IP address to distinguish the network identity and host identity 255.255.255.0 is converted into binary network identity said 11111111 11111111 11111111 00000000 11111111 11111111 11111111 00000000 host class C address identifier can be assigned to 254 computers
We can use regular expressions in JAVA code is expressed as ^ (25 [0 to 5] | 2 [0 to 4] [0-9] | {1} [0, 1] [0-9] {2} | {1} [1-9] [0-9] {1} | [1-9]) \. (25 [0 to 5] | 2 [0 to 4] [0-9] | {1} [0, 1] [0-9] {2} | {1} [1-9] [0-9] {1} | | 0) [1-9] \. (25 [0 to 5] | 2 [0 to 4] [0-9] | {1} [0, 1] [0-9] {2} | {1} [1-9] [0-9] {1} | | 0 [1-9]) \. (25 [0 to 5] | 2 [0 to 4] [0-9] | {1} [0, 1] [0-9] {2} | {1} [1-9] [0-9] {1} | [0-9]) $
Correct writing: 127.0.0.1 | 255.255.255.0 | 192.168.0.1
Error writing: 1200.5.4.3 | ABC. Def. Ghi, JKL | 255. The foo bar. 1
CodePudding user response:
192.168.70.2 255.255.255.255 represents a host