473,385 Members | 2,210 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,385 software developers and data experts.

How to get IP address from giving hostname in ASP?

Currently, I want to get the IP address from giving hostname in the Active
Server Page. I know the hostname, I want to get the IP address via hostname
in an ASP page.
--
Developer
QA Dashboard
Microsoft China Development Centre
Oct 12 '05 #1
3 4776
=?Utf-8?B?TWljcm9sb25nwq4=?= wrote on 12 okt 2005 in
microsoft.public.inetserver.asp.general:
Currently, I want to get the IP address from giving hostname in the
Active Server Page. I know the hostname, I want to get the IP address
via hostname in an ASP page.


nslookup.exe

but you might compromize your server's security, if you are not caraful
with the necessary changes.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 12 '05 #2
Is there any method or object to support this utiltiy tool?
--
Developer
QA Dashboard
Microsoft China Development Centre
"Evertjan." wrote:
=?Utf-8?B?TWljcm9sb25nwq4=?= wrote on 12 okt 2005 in
microsoft.public.inetserver.asp.general:
Currently, I want to get the IP address from giving hostname in the
Active Server Page. I know the hostname, I want to get the IP address
via hostname in an ASP page.


nslookup.exe

but you might compromize your server's security, if you are not caraful
with the necessary changes.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 12 '05 #3
=?Utf-8?B?TWljcm9sb25nwq4=?= wrote on 12 okt 2005 in
microsoft.public.inetserver.asp.general:
"Evertjan." wrote:
=?Utf-8?B?TWljcm9sb25nwq4=?= wrote on 12 okt 2005 in
microsoft.public.inetserver.asp.general:
> Currently, I want to get the IP address from giving hostname in the
> Active Server Page. I know the hostname, I want to get the IP address
> via hostname in an ASP page.
nslookup.exe

but you might compromize your server's security, if you are not caraful
with the necessary changes.

Is there any method or object to support this utiltiy tool?


[Please do not toppost on usenet]

You could run nslookup in a shell and read the standard-out via a temporary
file, I suppose.

Examples are found via Google.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 12 '05 #4

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

Similar topics

21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
2
by: Darren Kirby | last post by:
Hello list: I am writing a small app in python which tracks the kernel banner at kernel.org and downloads newer kernel version(s) (if there are any). I am using GeoIP to set the download to a...
7
by: none | last post by:
I want to determine the outside (non local, a.k.a. 127.0.0.x) ip addresses of my host. It seems that the socket module provides me with some nifty tools for that but I cannot get it to work...
2
by: Rodrigo C. Souza | last post by:
How to obtain the IP address of the interface that is connected to the Internet? I´m using the code below to get IP address of the local machine: //*********************************************...
3
by: John J. Hughes II | last post by:
I have an application that uses a socket. One of the users was complaining that it would not work if they put the computer name in but only worked if they put the IP address in. I had them run...
6
by: Zytan | last post by:
Once a socket is connected, perhaps to a hostname that contains multiple IP addresses, how can I determine to which IP address the connection is made? The only thing I can get from my Socket is an...
11
by: axlq | last post by:
Does anyone have a favored way of finding the geographic location of a user's IP address, so that a php script can include content relevant to that location? Reverse-lookup of the hostname isn't...
3
by: ajd335 | last post by:
Hi all, I am using freeBSD . I have written a PHP script that can give me IP , hostname as well as MAc address of the work station. I have used shell_exec("arp -a"); And than used the...
2
by: Richard Maher | last post by:
Hi, Can someone please tell me the strategy(ies) used by Java (the Security Manager or whatever) to determine if a given IP address conforms to the definition of the codebase from which an...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.