Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2004, 10:16 AM
Authorized User
 
Join Date: Oct 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default get hostname from IP

is there any way in ASP to resolve a hostname from a given IP address ?

thanks

dave

 
Old October 7th, 2004, 08:03 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Good question! not that I am aware of (using clasic ASP only)
Anyhow:
http://www.vbip.com/winsock-api/geth...tbyaddr-02.asp

Wind is your friend
Matt
 
Old October 7th, 2004, 11:41 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Here is a relatively cheap component for doing this.

http://www.dynu.com/dynudns.asp
 
Old October 8th, 2004, 12:15 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

madhukp

Wow, done in classic ASP?

This question interested me, I have since asked several people more experienced than I and have been given a 99% no. The link you posted gives me an error, does it work for you?



Wind is your friend
Matt
 
Old October 8th, 2004, 12:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Error: Me too :(

_________________________
- Vijay G
Strive for Perfection
 
Old October 8th, 2004, 12:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hey Matt,

That link opens up for me now. But seems to be cheap? 299$ ;).

I found this for you, which claims to be a free component itself.
Quote:
quote:So, if you like the software and feel that it saved you time, you can make a US$10 contribution. Or you can just use it for free and feel bad about it ;).
ahaha. But haven't tested it yet. If interested, have a look.

Looks promising as I had a glimpse.

ASPDNS COM Component

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old October 8th, 2004, 12:37 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

The link is working correctly.

$299 is for purchasing the source code of this component. To get the component, it will cost you only $20.

I have not used this component. But I have used dynuFTP, dynuWhois and dynuPop3 components from them. All are working correctly. So I am trusting the components from dynu in general.
 
Old October 8th, 2004, 12:53 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;The component is a form of freeware that I call donationware
Donationware, ha ha ha I like it

Cheers happygv and madhukp - looks useful

BTW First I was getting a general server 500 error then a 'need end if in global.asa line xxx

Wind is your friend
Matt
 
Old October 8th, 2004, 01:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

I forgot to mention the OP about this.
cygnusx04, You may have a look at that free component. That should solve your need.

Matt,
Can you post some part of that code? looks like you are missing one

Cheers!
_________________________
- Vijay G
Strive for Perfection
 
Old October 8th, 2004, 01:32 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

happygv

Code? Are you talking about the 'BTW First I was getting...' part of my last post?

If so, I was talking about the errors going to the site madhukp suggested - sorry, it does read a bit weird. I thought he may be involved with the site therefore may be interested in the type of errors it was showing.

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get hostname from ip address? starnold C# 6 June 18th, 2007 10:41 AM
Help me i must Get IP Address pla_2 C# 2005 2 October 12th, 2006 07:51 AM
How to get IP address shankhan Classic ASP Databases 6 March 10th, 2005 04:18 PM
IP mani_he Beginning PHP 4 November 8th, 2004 09:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.