472,119 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Retrieving ip-adress with vb.net application

Like the topic states, is there any way I can get the ip-adress of my
computer with a vb.net application?

thanks for the help :)
Nov 20 '05 #1
2 6661
Imports System.Net
Imports System.Net.Sockets
Dim IPAddress As New
IPAddress(Dns.GetHostByName(Dns.GetHostName).Addre ssList(0).Address)
Dim strIPAddress As String = IPAddress.ToString

"Sven Wynsberghe" <sv*************@howest.be> wrote in message
news:ei**************@tk2msftngp13.phx.gbl...
Like the topic states, is there any way I can get the ip-adress of my
computer with a vb.net application?

thanks for the help :)

Nov 20 '05 #2
The answer has been posted but just make sure that the variable name is
different from the type ( IPAddress)
Keep up the good work.

Thanks,
sarika
Imports System.Net
Imports System.Net.Sockets
Dim IPAddress1 As New
IPAddress(Dns.GetHostByName(Dns.GetHostName).Addre ssList(0).Address)
Dim strIPAddress As String = IPAddress1.ToString

--------------------
| From: "Thomas" <no****@nospam.nospam>
| References: <ei**************@tk2msftngp13.phx.gbl>
| Subject: Re: Retrieving ip-adress with vb.net application
| Date: Wed, 10 Sep 2003 14:05:12 +0200
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <eq**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: cpe.atm2-0-1021215.0x503f4156.bynxx14.customer.tele.dk
80.63.65.86
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:136246
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Imports System.Net
| Imports System.Net.Sockets
| Dim IPAddress As New
| IPAddress(Dns.GetHostByName(Dns.GetHostName).Addre ssList(0).Address)
| Dim strIPAddress As String = IPAddress.ToString
|
| "Sven Wynsberghe" <sv*************@howest.be> wrote in message
| news:ei**************@tk2msftngp13.phx.gbl...
| > Like the topic states, is there any way I can get the ip-adress of my
| > computer with a vb.net application?
| >
| > thanks for the help :)
| >
| >
|
|
|

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by Alexander N. Spitzer | last post: by
1 post views Thread by Alfredo Agosti | last post: by
reply views Thread by Ricky Chan | last post: by
65 posts views Thread by kyle.tk | last post: by
10 posts views Thread by Girish | last post: by
4 posts views Thread by shirleylouis | last post: by
reply views Thread by leo001 | last post: by

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.