Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to get a specific machine's IP address with it's name?

Reply
Thread Tools

How to get a specific machine's IP address with it's name?

 
 
Aries
Guest
Posts: n/a
 
      01-22-2004
Hi
Let say I wanted to get an IP address of a machine called mybox. How can I
do it in ASP?

--

還我本色
Forever Bad.


 
Reply With Quote
 
 
 
 
Jeff Cochran
Guest
Posts: n/a
 
      01-22-2004
On Wed, 21 Jan 2004 18:06:04 -0800, "Aries" <a> wrote:

>Let say I wanted to get an IP address of a machine called mybox. How can I
>do it in ASP?


You really can't. Any method you use will have potential flaws, such
as a proxy reporting the proxy's IP instead of the target behind it,
or a DNS lookup not having that machine name tied to the IP address.
On an intranet you have enough control that you may be able to run
client-side code to pull out the information, WMI has enough available
to do this, or you could guarantee that dynamic DNS or WINS resolution
would report the correct info.

Those really aren't strictly ASP, and you'll find plenty of scripting
samples at these sites:

http://www.microsoft.com/technet/tre...er/Default.asp
http://cwashington.netreach.net/main...asp?topic=news

Jeff
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
XML parsing problem finding a specific element in a specific place mazdotnet ASP .Net 2 10-02-2009 10:07 AM
Is ViwState Page-Specific or UserControl-Specific =?Utf-8?B?SmF2?= ASP .Net 2 08-16-2006 09:30 PM
redirect traffic on specific ip to specific interface mimiseh Cisco 3 06-05-2005 09:14 PM
How do you make sure a frameset is loaded? I'm trying to open a frameset in a new window which shows a specific html page in a specific frame ck388 Javascript 1 09-24-2003 08:32 PM



Advertisments