Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / January 2007

Tip: Looking for answers? Try searching our database.

Class for IP address and mask?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Thielen - 06 Jan 2007 23:24 GMT
Hi;

Is there a class that holds an IP address and a mask? I thought there would
be but cannot find it.

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Henning Krause [MVP - Exchange] - 07 Jan 2007 11:07 GMT
Hello,

at least Exchange saves it's serverbindings as strings, in the format
[dnsname_or_ipaddress]:[port]:[hostheader], where [dnsname_or_ipaddress] or
[hostheader] can even be empty.

So I guess, there is none...

Best regards,
Henning Krause

> Hi;
>
> Is there a class that holds an IP address and a mask? I thought there
> would
> be but cannot find it.
David Thielen - 07 Jan 2007 19:20 GMT
I built my own and it was easy. I just didn't want to duplicate an existing
class and figured there probably was one. Now I know to stick with my class.

Signature

thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

> Hello,
>
[quoted text clipped - 12 lines]
> > would
> > be but cannot find it.
Walter Wang [MSFT] - 08 Jan 2007 03:24 GMT
Dave,

FYI, if you want to retrieve the subnet mask of a system's installed
networks, you may want to use following approach:

#Durgaprasad Gorti's WebLog : Getting SubnetMask through
System.Net.NetworkInformation
http://blogs.msdn.com/dgorti/archive/2005/10/04/477078.aspx

I agree that building a class represents an IP and a mask is easy since a
mask can be actually represented by an instance of IPAddress too.

Hope this helps.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.