473,386 Members | 1,602 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,386 software developers and data experts.

resolving multiple ip addresses

I want to write a function to retrieve the current IP address of a computer.
All the examples I've seen rely on taking the first address from a list.
But I'm in something of a predicament -- that address isn't always right.
For example, if my computer is connected to a VPN, the address I want (the
one associated with the VPN) might be the third entry in the list! Is there
some more intelligent way to determine what the "correct" address is?
Nov 16 '05 #1
1 1335
"SLIDE6" <root@yourcomputer> wrote in message
news:OP**************@TK2MSFTNGP15.phx.gbl...
I want to write a function to retrieve the current IP address of a
computer. All the examples I've seen rely on taking the first address from
a list. But I'm in something of a predicament -- that address isn't always
right. For example, if my computer is connected to a VPN, the address I
want (the one associated with the VPN) might be the third entry in the
list! Is there some more intelligent way to determine what the "correct"
address is?


Ping each address to see if it's live?
Nov 16 '05 #2

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

Similar topics

2
by: (Pete Cresswell) | last post by:
For better or worse, I have chosen to implement mailing addresses in a particular application as a separate table. One Person ==> Many Addresses. It is a database for managing school reunions...
2
by: .Net Newbie | last post by:
Hello, I am currently coding my ASP.Net pages in c# and have run into a question concerning Emails. I have four objects on a page (six including 2 buttons). The first is a subject line...
1
by: Ghislain Tanguay | last post by:
Hi everyone, this is the code I use now for resolving domain address with email. But I use an external program "nslookup" to verify my addresses. Is there an intrinsic object in dotnet who do...
1
by: cemcat | last post by:
Hello, We have an ASP.NET 2.0 (C#) web form that contains a textbox for users to enter multiple e-mail addresses separated by semicolons. We need to validate that each individual e-mail address...
1
by: Phoenix_ver10 | last post by:
I have a mailing list with multiple names going to the same addresses. I need one address with all the names for that address on it. I checked out the example on microsoft's site, but A: It doesn't...
4
by: HLCruz via AccessMonster.com | last post by:
I am working with a database that has client information separated in to 4 related tables - tFolder, tAddress, tEmail, tPhone number. In addition there are related tables tGifts and tCalls. The...
0
by: Adam D. Barratt | last post by:
Hi, I've been searching Google for ideas as to how to use Mapi (in this case an Outlook client connecting to Exchange Server) from VB.NET to resolve e-mail addresses for contacts for which...
25
by: Fred | last post by:
Our server has 8 IPs with 121.232.21.1 as default (example). I wrote a windows service that downloads podcasts (mp3s) off the net. However every time this service runs it clogs down the entire...
2
by: JoderCoder | last post by:
I have an application, which has a few server connections. Any suggestions on how to find out the way application resolves the IP addresses of the servers. For example; a. is it looking into local...
3
by: shawie60 | last post by:
Hi guys, I have a bit of a problem. I've set up my network ( 3 desktops 1 x wireless laptop) using a TK IP router. Most use fixed IP addresses. Each machine can access the internet. 1 of the machnes...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.