473,413 Members | 1,854 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,413 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 6743
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.