473,748 Members | 7,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Find IP Address

Hi, how to find IP address. Thanks
Nov 21 '05 #1
12 2607
IP Address of the local machine? If yes, this is one way:

Dim local As IPHostEntry = Dns.Resolve(Dns .GetHostName())
For ip As IPAddress In local
Console.WriteLi ne (ip)
Next

Hope this helps.

"Souljaz" <an*******@disc ussions.microso ft.com> wrote in message
news:12******** *************** *****@phx.gbl.. .
Hi, how to find IP address. Thanks
Nov 21 '05 #2
Hi there, where should I put these code,
Another thing I am looking global IP address

Any idea?
-----Original Message-----
IP Address of the local machine? If yes, this is one way:

Dim local As IPHostEntry = Dns.Resolve(Dns .GetHostName())
For ip As IPAddress In local
Console.WriteLi ne (ip)
Next

Hope this helps.

"Souljaz" <an*******@disc ussions.microso ft.com> wrote in messagenews:12******* *************** ******@phx.gbl. ..
Hi, how to find IP address. Thanks
.

Nov 21 '05 #3
Hi,

Here an alternative
\\\Dim IPAdres As String = System.Net.Dns. Resolve _
(SystemInformat ion.ComputerNam e).AddressList( 0).ToString
///

I hope this helps?

Cor
<an*******@disc ussions.microso ft.com>
Hi there, where should I put these code,
Another thing I am looking global IP address

Any idea?
-----Original Message-----
IP Address of the local machine? If yes, this is one way:

Dim local As IPHostEntry = Dns.Resolve(Dns .GetHostName())
For ip As IPAddress In local
Console.WriteLi ne (ip)
Next

Hope this helps.

"Souljaz" <an*******@disc ussions.microso ft.com> wrote in

message
news:12****** *************** *******@phx.gbl ...
Hi, how to find IP address. Thanks
.

Nov 21 '05 #4
Import the System.Net namespace and this should work from any module/class.
You might want to index (like local(0)) the array returned from
Dns.Resolve() to access the specific address for your processing.

Can you give more info on what you mean by 'global ip address'?

<an*******@disc ussions.microso ft.com> wrote in message
news:17******** *************** *****@phx.gbl.. .
Hi there, where should I put these code,
Another thing I am looking global IP address

Any idea?
-----Original Message-----
IP Address of the local machine? If yes, this is one way:

Dim local As IPHostEntry = Dns.Resolve(Dns .GetHostName())
For ip As IPAddress In local
Console.WriteLi ne (ip)
Next

Hope this helps.

"Souljaz" <an*******@disc ussions.microso ft.com> wrote in messagenews:12******* *************** ******@phx.gbl. ..
Hi, how to find IP address. Thanks
.

Nov 21 '05 #5
"Souljaz" <an*******@disc ussions.microso ft.com> schrieb:
how to find IP address.


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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #6
Hi all,

Thanks Cor Ligthert for the code, its work. But that is
to find local IP address right. What I want to find is
the dynamic IP address that provided by the ISP. Thanks
-----Original Message-----
Hi,

Here an alternative
\\\Dim IPAdres As String = System.Net.Dns. Resolve _
(SystemInforma tion.ComputerNa me).AddressList (0).ToString
///

I hope this helps?

Cor
<an*******@dis cussions.micros oft.com>
Hi there, where should I put these code,
Another thing I am looking global IP address

Any idea?
-----Original Message-----
IP Address of the local machine? If yes, this is one way:
Dim local As IPHostEntry = Dns.Resolve(Dns .GetHostName ())For ip As IPAddress In local
Console.WriteLi ne (ip)
Next

Hope this helps.

"Souljaz" <an*******@disc ussions.microso ft.com> wrote
in message
news:12***** *************** ********@phx.gb l...
Hi, how to find IP address. Thanks
.

.

Nov 21 '05 #7
Hi,

I have no dynamic IP adress provided by the ISP, however is that not the
same?

When you have more Ip adresses I would look at the code that Shiva provided.

Cor
Nov 21 '05 #8
It is not the same, The local IP address is Ip address
that is set by the windows or by the user. If you
connected to LAN you will have Local IP address that can
be set dynamic or static for the particular computer in
LAN. But the IP Address that provided by the ISP is the
global IP address or WAN IP address. It is normally set
by the ISP and everytime you reconnect again the IP
address will be change.

try to go to this sites
http://www.html-kit.com/e/browconninfo.cgi

The sites will show you the IP address that provided by
the ISP.

Most of the code that provided here is to find the local
IP address. WHat I want to find the the IP address that
is provided by the ISP.

Any idea guys?

Thanks
-----Original Message-----
Hi,

I have no dynamic IP adress provided by the ISP, however is that not thesame?

When you have more Ip adresses I would look at the code that Shiva provided.
Cor
.

Nov 21 '05 #9
As I asked did you try the sample of Shiva.

You can see your IP adresses by the way by doing in the DOS prompt

IPConfig

I hope this helps?

Cor

<an*******@disc ussions.microso ft.com>
It is not the same, The local IP address is Ip address
that is set by the windows or by the user. If you
connected to LAN you will have Local IP address that can
be set dynamic or static for the particular computer in
LAN. But the IP Address that provided by the ISP is the
global IP address or WAN IP address. It is normally set
by the ISP and everytime you reconnect again the IP
address will be change.

try to go to this sites
http://www.html-kit.com/e/browconninfo.cgi

The sites will show you the IP address that provided by
the ISP.

Most of the code that provided here is to find the local
IP address. WHat I want to find the the IP address that
is provided by the ISP.

Any idea guys?

Thanks
-----Original Message-----
Hi,

I have no dynamic IP adress provided by the ISP, however

is that not the
same?

When you have more Ip adresses I would look at the code

that Shiva provided.

Cor
.

Nov 21 '05 #10

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

Similar topics

4
27225
by: Arne | last post by:
Hi, Probably an easy answer to this, but I have not been able to figure it out. How can I find the IP-address of the machine that my Java-program is running on ? Could not find any methods in the InetAddress class that does this. The closest I got was the getLocalHost() which will return the IP-address representing the loopback address (usually 127.0.01, isn't it ?). Any ideas ?
1
2649
by: Galsaba | last post by:
Anyone knows how I can find a script for "Find a Dealer near you" locator script? I prefer to have it in two stages: 1. The customer will enter his address, and then the result will be a list of dealer in a radius of let's say 20 miles. 2. When the user clicks on the dealer's link, the result will be the exact Driving distance. If this is not the right forum to post this message, then, if you know which
8
1936
by: pigeon | last post by:
I have 2 users that their client software must be going crazy.. they are sending packets every .02 seconds to the db server... I know this because I stuck a sniffer on teh traffic.. but now i just need to know what user is doing this (all traffic is encrypted.. so i couldn’t sniff out that.. i could only get an IP). any ideas? -- Posted using the http://www.dbforumz.com interface, at author's request
2
1881
by: Phil | last post by:
Hi. I have a table containing primary address, secondary address, road,town, postcode, there are otherfields within the table requestid, round, day, etc. I want to find all instances of the address if it occurs > 2 in a given period. I need a report that gives the address and other fields. I have tried using the find duplicates wizard, i need to run a query twice, once to pick up the primary address and street and postcode and one to...
4
2453
by: Arun | last post by:
Like its possible to find IP address of a visitor in same way is it possible to find the visitor's PC's MAC address? -Regards,
3
2237
by: subirs | last post by:
Hi, I am using mtrace to check for memory leaks in my code. The code is divided into many fucntion which are placed in different directories. While using mtrace the following output is given. Now the problem is to find where in the code and in which function memory leaks occurs as the trace does not give line number or name of the function. ------------------------------------------------------------------ Memory not freed:...
11
1832
by: bijayadipti | last post by:
Hi, I have a C program. I have compiled it uisng gcc and also avr-gcc. Now after compiling, I want to know the addresses of the two variables in my program. Is there any options that I can use to find that out? Is there any way at all to find that out? Someone told that it was possible but I am not able to find out. Thank you in advance, priya
10
7529
by: Christian Chrismann | last post by:
Hi, I've a question on the STL find algorithm: My code: int main( void ) { vector< ClassA* myVector; ClassA *ptrElement1 = ...;
10
13639
by: OppThumb | last post by:
Hi, I've been searching this newsgroup for an answer to my question, and the closest I've come asks my question, but in reverse ("How to figure out the program from plan/package"). I've -- shall we say, inherited? -- a COBOL program with very little documentation that I've recompiled for debugging purposes. The compile/link/bind have all been done, but nothing in the output tells me what plan the program has been bound to, so I can't...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4606
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.