English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

You know 0.0.0.0, 127.0.0.1 is not valid

2006-06-30 03:58:35 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

What do you mean by valid? The two you listed are valid IPs, but they have special uses and so you won't see them on the web. Regular expressions really won't work very well to make sure that each section of the IP falls in between 0 and 255 though. My recommendation is to check that it has the right form, then break out each part and validate that it falls in the range you are looking for.

2006-06-30 04:05:11 · answer #1 · answered by John J 6 · 0 0

In what language? 0.0.0.0 is a valid IP address - default network. Please state questions accurately.

2006-06-30 04:10:11 · answer #2 · answered by Anonymous · 0 0

to get ip address of ur machine just write:-
ipconfig
in cmd.

2006-07-04 22:48:06 · answer #3 · answered by Anonymous · 0 0

In Javascript:

RegExp( \[0-9]{1,3}) \.(\[0-9]{1,3}) \.(\[0-9]{1,3}) \.(\[0-9]{1,3} );

Modify for your language

2006-06-30 04:16:26 · answer #4 · answered by Caus 5 · 0 0

fedest.com, questions and answers