Click here to Skip to main content
15,914,820 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFile Association..pls help Pin
carl_sti12-Feb-07 14:59
carl_sti12-Feb-07 14:59 
AnswerRe: File Association..pls help Pin
TwoFaced12-Feb-07 15:53
TwoFaced12-Feb-07 15:53 
GeneralRe: File Association..pls help Pin
carl_sti12-Feb-07 16:26
carl_sti12-Feb-07 16:26 
GeneralRe: File Association..pls help Pin
M-Hall12-Feb-07 17:02
M-Hall12-Feb-07 17:02 
GeneralRe: File Association..pls help Pin
carl_sti12-Feb-07 17:34
carl_sti12-Feb-07 17:34 
Questionrename the existed excel worksheet name Pin
JaneQuestion12-Feb-07 13:29
JaneQuestion12-Feb-07 13:29 
AnswerRe: rename the existed excel worksheet name Pin
ajay5888612-Feb-07 20:16
ajay5888612-Feb-07 20:16 
QuestionVista always shows ipv6 address - how to only get ipv4 local address? Pin
Mr Plant12-Feb-07 10:11
Mr Plant12-Feb-07 10:11 
Someone please help!

I am using the following code:

Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName)
Me.Text = "Local IP: " & CType(h.AddressList.GetValue(0), IPAddress).ToString

In Windows XP, this results in the top bar showing the local first ip address

eg:

Local IP: 192.168.1.11

When this same code is executed on Windows Vista,

it gives:

Local IP: fe80::7811:d6fc:e34d:2102%8

which is the ipv6 address.

My question is - how can I make sure my code retrieves the ipv4 address (always - even on vista).

I am stumped...

(I already have a way of detecting if I am running on Vista or not as the OS - in case it requires
different code..)

I can't find anything on this issue on the net either which is annoying...

Thank you for any feedback on this..


AnswerRe: Vista always shows ipv6 address - how to only get ipv4 local address? Pin
M-Hall12-Feb-07 17:41
M-Hall12-Feb-07 17:41 
QuestionError message: vbc30205? Pin
Shima. M.12-Feb-07 7:45
Shima. M.12-Feb-07 7:45 
AnswerRe: Error message: vbc30205? Pin
Kschuler12-Feb-07 8:43
Kschuler12-Feb-07 8:43 
QuestionTabPages Pin
CodingYoshi12-Feb-07 7:43
CodingYoshi12-Feb-07 7:43 
AnswerRe: TabPages Pin
Christian Graus12-Feb-07 10:31
protectorChristian Graus12-Feb-07 10:31 
QuestionIts is possible to make it on vb.net? Pin
blitz00212-Feb-07 6:52
blitz00212-Feb-07 6:52 
AnswerRe: Its is possible to make it on vb.net? Pin
nlarson1112-Feb-07 7:08
nlarson1112-Feb-07 7:08 
AnswerRe: Its is possible to make it on vb.net? Pin
Christian Graus12-Feb-07 10:28
protectorChristian Graus12-Feb-07 10:28 
AnswerRe: Its is possible to make it on vb.net? Pin
Squeaker12-Feb-07 14:59
Squeaker12-Feb-07 14:59 
QuestionEAN13 ? Pin
Polymorpher12-Feb-07 5:45
Polymorpher12-Feb-07 5:45 
AnswerRe: EAN13 ? Pin
andyharman12-Feb-07 6:14
professionalandyharman12-Feb-07 6:14 
GeneralRe: EAN13 ? Pin
Polymorpher12-Feb-07 6:49
Polymorpher12-Feb-07 6:49 
QuestionError Message [modified] Pin
jds120712-Feb-07 5:03
jds120712-Feb-07 5:03 
AnswerRe: Error Message Pin
Johan Hakkesteegt12-Feb-07 20:50
Johan Hakkesteegt12-Feb-07 20:50 
Questioncmd non execute error Pin
muraguri12-Feb-07 4:17
muraguri12-Feb-07 4:17 
AnswerRe: cmd non execute error Pin
Colin Angus Mackay12-Feb-07 5:14
Colin Angus Mackay12-Feb-07 5:14 
GeneralRe: cmd non execute error Pin
muraguri13-Feb-07 0:23
muraguri13-Feb-07 0:23 

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.