Click here to Skip to main content
15,916,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: .parse vs casting Pin
Curtis Schlak.11-Jan-06 3:25
Curtis Schlak.11-Jan-06 3:25 
AnswerRe: .parse vs casting Pin
Guffa11-Jan-06 11:17
Guffa11-Jan-06 11:17 
QuestionHow to get the IP address of the current host? Pin
bouli11-Jan-06 1:13
bouli11-Jan-06 1:13 
AnswerRe: How to get the IP address of the current host? Pin
mikailcetinkaya11-Jan-06 9:09
mikailcetinkaya11-Jan-06 9:09 
GeneralRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 9:34
mveDave Kreskowiak11-Jan-06 9:34 
AnswerRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 9:32
mveDave Kreskowiak11-Jan-06 9:32 
GeneralRe: How to get the IP address of the current host? Pin
bouli11-Jan-06 10:15
bouli11-Jan-06 10:15 
GeneralRe: How to get the IP address of the current host? Pin
Dave Kreskowiak11-Jan-06 10:53
mveDave Kreskowiak11-Jan-06 10:53 
There is no "right-address". A single NIC can have multiple addresses assigned to it. This is the address that DNS servers know about.

You could also get this from WMI (System.Management namespace). All you need to do is search for all the occurances of Win32_NetworkAdapterConfiguration objects. Each will have its own array of IPAddresses. Warning: You might be surprised at how many of these object and addresses there really are! Once you have those, examine them to see which ones have an active DefaultIPGateway. This will be the adapter and set of addresses that your talking about.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

QuestionFinger print scanner Access in C# Pin
Ckhurana11-Jan-06 0:51
Ckhurana11-Jan-06 0:51 
AnswerRe: Finger print scanner Access in C# Pin
Dave Kreskowiak11-Jan-06 5:45
mveDave Kreskowiak11-Jan-06 5:45 
Questionobject initialization Pin
bidisha_tina11-Jan-06 0:06
bidisha_tina11-Jan-06 0:06 
AnswerRe: object initialization Pin
Colin Angus Mackay11-Jan-06 0:13
Colin Angus Mackay11-Jan-06 0:13 
GeneralRe: object initialization Pin
bidisha_tina11-Jan-06 0:29
bidisha_tina11-Jan-06 0:29 
GeneralRe: object initialization Pin
Colin Angus Mackay11-Jan-06 0:40
Colin Angus Mackay11-Jan-06 0:40 
GeneralRe: object initialization Pin
bidisha_tina11-Jan-06 0:51
bidisha_tina11-Jan-06 0:51 
QuestionEventHandling for Controls inserted(OLE way) in a RichTextBox Pin
Linda Thomas10-Jan-06 23:36
Linda Thomas10-Jan-06 23:36 
QuestionFlicker Free Drawing in C# Pin
AB777110-Jan-06 23:11
AB777110-Jan-06 23:11 
AnswerRe: Flicker Free Drawing in C# Pin
[Marc]11-Jan-06 1:44
[Marc]11-Jan-06 1:44 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 2:00
AB777111-Jan-06 2:00 
GeneralRe: Flicker Free Drawing in C# Pin
J4amieC11-Jan-06 2:29
J4amieC11-Jan-06 2:29 
GeneralRe: Flicker Free Drawing in C# Pin
[Marc]11-Jan-06 16:55
[Marc]11-Jan-06 16:55 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 17:23
AB777111-Jan-06 17:23 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 17:24
AB777111-Jan-06 17:24 
GeneralRe: Flicker Free Drawing in C# Pin
AB777111-Jan-06 18:20
AB777111-Jan-06 18:20 
GeneralRe: Flicker Free Drawing in C# Pin
[Marc]11-Jan-06 22:24
[Marc]11-Jan-06 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.