473,480 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Get The IP of my computer

hi all.
what's the easiest way to get the ip of my computer:
127.10.142.25 ....
thanks.
Nov 21 '05 #1
3 2944
Hi

Dim myIP As System.Net.IPAddress
Dim myPC As String = System.Net.Dns.GetHostName()
Dim myIPAdres As String =
System.Net.Dns.Resolve(myPC).AddressList(0).ToStri ng()MsgBox(myPC & "=" &
myIPAdres)

hth Peter

"shachar" <an*******@discussions.microsoft.com> wrote in message
news:18****************************@phx.gbl...
hi all.
what's the easiest way to get the ip of my computer:
127.10.142.25 ....
thanks.

Nov 21 '05 #2
"shachar" <an*******@discussions.microsoft.com> schrieb:
what's the easiest way to get the ip of my computer:
127.10.142.25 ....


<URL:http://www.activevb.de/rubriken/vbdotnettipps/tipp0016.html>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
Shachar,

It is just the same as Peter, only written in another way

MessageBox.Show(System.Net.Dns.Resolve(System.Net. Dns.GetHostName()).Address
List(0).ToString())

Cor
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
3015
by: tnrABC | last post by:
The approximately 100 books below are for sale. Mostly a selection of mathematics (numerical analysis mostly), computing science (graphics, ai, programming techniques, theory, compilers, operating...
5
4271
by: z. f. | last post by:
i need to get the computer name from an aspx page. i use System.Windows.Forms.SystemInformation.ComputerName() and it's working fine, but in second thought, it might not be recomended to use the...
0
1580
by: Daylor | last post by:
hi. i have app that im developing in my computer with vs.net 2003 (offcourse). now, this app is running in other computer in the local intranet. in the other computer i dont have vs.net installed...
12
2096
by: dennist685 | last post by:
How to get an Access database on the web from my own computer I have an Access database project in inetpub/wwwroot/Access2 . I build it, and then press cntrl-F5. - I still get the development...
0
2718
by: py | last post by:
I am trying to execute a batch script on a remote computer. The batch script looks like: @echo off start c:\python24\python.exe c:\a_script.py Here's the setup: Computer A (my computer),...
0
2582
by: Paul Brady | last post by:
I volunteer at a youth ministry agency and help them with their student database. They have two computers, both running Windows XP. Both have Office 2002 installed without Access, except that...
2
2844
by: subsanta | last post by:
My computer has so many problems and ive looked around on the internet and ive managed to fix some of them. I know that i have a few viruses on my computer, but i cant get rid of them, in one case i...
0
2104
by: masalamod | last post by:
http://www.cextube.com/search.php? search=computer++languages&submit=Video+Search http://www.cextube.com/search.php? search=computer++languages&submit=Video+Search ...
0
2050
by: Winder | last post by:
Computer Data Recovery Help 24/7 Data recovering tools and services is our focus. We will recover your data in a cost effective and efficient manner. We recover all operating systems and media....
4
1517
by: =?Utf-8?B?Qm9iQWNoZ2lsbA==?= | last post by:
Hi, I am using Visual Studio 2003. After moving my project to a new development computer my project compiles and works on the new development computer but the program will not work when I...
0
7046
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
6908
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
7088
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...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5342
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
2997
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
183
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.