473,396 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Valid IP address

How can I check if IP address is valid?
Nov 17 '05 #1
3 8180
What do you mean by valid?

If you mean well formed, the Parse method will take care of that for you.
Have a look at some quick starts...

http://samples.gotdotnet.com/quickstart/

Or maybe the MSDN...

http://msdn.microsoft.com/library/de...classtopic.asp

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton

"David Dvali" <da*********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
How can I check if IP address is valid?

Nov 17 '05 #2
David,

In .NET 2.0 you will have the IPAddress.TryParse(string) method, which
returns true or false:

http://msdn2.microsoft.com/library/m...us,vs.80).aspx

Regards - Octavio

"David Dvali" <da*********@hotmail.com> escribió en el mensaje
news:%2****************@tk2msftngp13.phx.gbl...
How can I check if IP address is valid?

Nov 17 '05 #3
What do you mean by valid?
You mean correctly parsed, or that the IP exists on the net?

--
Vadym Stetsyak aka Vadmyst

"David Dvali" <da*********@hotmail.com> wrote in message
news:#l**************@tk2msftngp13.phx.gbl...
How can I check if IP address is valid?

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: aaron | last post by:
I need some help with validating an email address. Right now, I am doing this: function sys_is_valid_email ($s) { if (preg_match ("/^.+@.+\..+$/", $s)) { return 1; } else { return 0; } }
16
by: siliconmike | last post by:
Hi, I'm looking for a reliable script that would connect to a host and somehow determine whether an email address is valid. since getmxrr() only gets the mx records.. Links/pointers ? Mike
14
by: nagual | last post by:
Can anyone please help me with a regular expression to test for Valid International Email Addresses? Also, which version of javascript (1.2 ?) is needed for same? Thanks. Regards.
11
by: Phil Amey | last post by:
In a web based form I am able to make sure that there is text in an input field but I want to force the user into inputting a valid email address, one that has @ in the address How can I modify...
5
by: Tony Johansson | last post by:
Hello experts! I question about understanding. I have read a book that says. If you have an array of integers you know that one element past the end of the array is legal as address but not to...
13
by: joenuts | last post by:
Is it possible for a function to test one of it's passed in variables (reference to object) for validity? I would like the displayString( string &obString) function to verify that obString 1)...
4
by: aroraamit81 | last post by:
Is there any way by which I can validate fora valid web address............... Regards, Amit Arora
1
by: pennyfx | last post by:
I ran into a strange problem today. I tried to send mail to a strange but valid email address, but the MailAddress("") object choked on me. It threw a formating exception saying it was not a valid...
14
by: jois.de.vivre | last post by:
Hello, I was wondering if the following code was ok: // ----------- start code #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char** argv) {
2
by: anon.asdf | last post by:
Hello! 1) =============================== When trying to define an array of std::string ... func( (std::string ) { std::string("ab"), std::string("cd"), std::string("ef") } , 3 ); ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.