473,387 Members | 1,693 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,387 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 6741
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
1
by: Alfredo Agosti | last post by:
Hi all, I wonder if it's possible to show in a windows all the Session ID of the people connected to my site along with some other information (IP etc). I didn't find how to retrieve all the...
1
by: Abby | last post by:
I'm writing a code to send/receive udp packet. I'll receive ip address from user (this is the starting ip), then I'll ask user how many ip he wants to connect to. For examples: Please enter 1st...
0
by: Ricky Chan | last post by:
I am using DNSQuery API to get computer name from IP address. However, by below sample code, I don't know how to specify the DNS Address for the field (ByVal aipServers As Integer). any idea?...
2
by: cha | last post by:
Hi there, how is it possible to retrieve the IP-Address of a user that requests my Web-Service written in VB.NET (asmx)? Any way to do this? Thanks for any help in advance, Christian...
65
by: kyle.tk | last post by:
I am trying to write a function to convert an ipv4 address that is held in the string char *ip to its long value equivalent. Here is what I have right now, but I can't seem to get it to work. ...
0
by: Andy | last post by:
Hi All. I'm working for a company that has set out a guideline for retrieving data from a database. Nobody can explain to me the reason for the following. When retrieving a set of records...
20
by: Terry Olsen | last post by:
I'm writing an app that communicates with computers both inside and outside my router. So I need to determine by the remote host's IP address if I need to send them my LAN IP or my Internet IP. ...
10
by: Girish | last post by:
Hi Everyone, I am passing a form to a php script for further processing. I am able to retrieve the last value set for that given form variable using $variable=$_REQUEST;
4
by: shirleylouis | last post by:
Hi Ppl, Could anyone help me out with retrieving URL from Clipboard using C#??
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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,...

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.