Resolving an IP Address.

Resolving an IP Address.

Post by Jonetta N » Fri, 22 Sep 2000 04:00:00



I am curious as to how to resolve an IP Address using ASP and JavaScript.
 
 
 

1. Resolve Decimal IP Addresses with this Simple C Program

/* TURN A 32 BIT DECIMAL IP ADDRESS INTO 4 QUADS */
/* SPAMMERS CAN RUN, BUT THEY CAN'T HIDE */
/* Felix Tilley */

/* No Guarantees on how this will run on your computer. */
/* An unsigned long must be AT LEAST 32 bits for this to work */
/* An unsigned long must be AT LEAST 32 bits for this to work */
/* An unsigned long must be AT LEAST 32 bits for this to work */

/* NO JOKE */

#include <stdio.h>

main()
{
unsigned long webaddr, quad0, quad1, quad2, quad3, quotient, temp, remainder;

printf ("Enter web address as decimal:   ");

scanf ("%lu", &webaddr);
printf ("\nWEB ADDRESS:      %lu \n", webaddr);

quad0    = webaddr  % 256;
quotient = webaddr  / 256;

quad1    = quotient % 256;
quotient = quotient / 256;

quad2    = quotient % 256;
quotient = quotient / 256;

quad3 = quotient;

printf ("QUAD IP ADDRESS:  %lu\.%lu\.%lu\.%lu  \n", quad3,quad2,quad1,quad0);

printf ("\nHope this helps.\nFelix Tilley \n");

exit(0) ;

2. Question about HPUX Pine implementation

3. Resolving raw IP addresses

4. Regex class with gnu C

5. How to configure sendmail when addressing by IP addresses (user@[ip-address-of-sendmail-host])?

6. Questions for Unisys CEO

7. Cannot resolve IP addresses with named daemon running.

8. Image processing examples

9. Blocking relay IP addresses that don't resolve?

10. sendmail.mc and stop ip-adresses in the header that don't resolve right

11. Require relay IP to resolve

12. Virtual hosts - IP based using own IP address

13. relaying on non resolving ip's