Hi, how to find IP address. Thanks 12 2578
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.WriteLine (ip)
Next
Hope this helps.
"Souljaz" <an*******@discussions.microsoft.com> wrote in message
news:12****************************@phx.gbl...
Hi, how to find IP address. Thanks
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.WriteLine (ip) Next
Hope this helps.
"Souljaz" <an*******@discussions.microsoft.com> wrote in
messagenews:12****************************@phx.gbl... Hi, how to find IP address. Thanks
.
Hi,
Here an alternative
\\\Dim IPAdres As String = System.Net.Dns.Resolve _
(SystemInformation.ComputerName).AddressList(0).To String
///
I hope this helps?
Cor
<an*******@discussions.microsoft.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.WriteLine (ip) Next
Hope this helps.
"Souljaz" <an*******@discussions.microsoft.com> wrote in messagenews:12****************************@phx.gbl... Hi, how to find IP address. Thanks
.
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*******@discussions.microsoft.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.WriteLine (ip) Next
Hope this helps.
"Souljaz" <an*******@discussions.microsoft.com> wrote in
messagenews:12****************************@phx.gbl... Hi, how to find IP address. Thanks
.
"Souljaz" <an*******@discussions.microsoft.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/>
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 _ (SystemInformation.ComputerName).AddressList(0).T oString ///
I hope this helps?
Cor
<an*******@discussions.microsoft.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.WriteLine (ip) Next
Hope this helps.
"Souljaz" <an*******@discussions.microsoft.com> wrote
in messagenews:12****************************@phx.gbl.. . Hi, how to find IP address. Thanks
.
.
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
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
.
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*******@discussions.microsoft.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 thesame?
When you have more Ip adresses I would look at the code that Shiva provided. Cor
.
Hi shiva,
I try to put your code in form_load
Dim local As IPHostEntry = Dns.Resolve(Dns.GetHostName())
For ip As IPAddress In local
Console.WriteLine (ip)
Next
But there is an error saying that:
'For' loop control variable cannot be of
type 'System.Net.IPAddress'.
Whats the problem? -----Original Message----- Import the System.Net namespace and this should work
from any module/class.You might want to index (like local(0)) the array
returned fromDns.Resolve() to access the specific address for your
processing. Can you give more info on what you mean by 'global ip
address'? <an*******@discussions.microsoft.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.WriteLine (ip) Next
Hope this helps.
"Souljaz" <an*******@discussions.microsoft.com> wrote in messagenews:12****************************@phx.gbl... Hi, how to find IP address. Thanks
.
.
Sorry, I missed .AddressList in the For statement:
Here is the working code:
Dim local As IPHostEntry = Dns.Resolve(Dns.GetHostName())
For Each ip As IPAddress In local.AddressList
Console.WriteLine (ip)
Next
<an*******@discussions.microsoft.com> wrote in message
news:1a****************************@phx.gbl...
Hi shiva,
I try to put your code in form_load
Dim local As IPHostEntry = Dns.Resolve(Dns.GetHostName())
For ip As IPAddress In local
Console.WriteLine (ip)
Next
But there is an error saying that:
'For' loop control variable cannot be of
type 'System.Net.IPAddress'.
Whats the problem? -----Original Message----- Import the System.Net namespace and this should work
from any module/class.You might want to index (like local(0)) the array
returned fromDns.Resolve() to access the specific address for your
processing. Can you give more info on what you mean by 'global ip
address'? <an*******@discussions.microsoft.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.WriteLine (ip) Next
Hope this helps.
"Souljaz" <an*******@discussions.microsoft.com> wrote in messagenews:12****************************@phx.gbl... Hi, how to find IP address. Thanks
.
.
They are the same thing... The IP you connect to the net is the one on the
machine.
If you have a gateway/router/proxy then you have to run your code on that
machine. You're machine has no idea what IP the other hardware is using.
<an*******@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl... 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 _ (SystemInformation.ComputerName).AddressList(0).T oString ///
I hope this helps?
Cor
<an*******@discussions.microsoft.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.WriteLine (ip) Next
Hope this helps.
"Souljaz" <an*******@discussions.microsoft.com> wrote in message news:12****************************@phx.gbl.. . Hi, how to find IP address. Thanks
.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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,
|
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....
|
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...
|
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 = ...;
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
| |