1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Rep Power

    Question Convert system IP to hexadecimal number

    How can i convert IP of the system to hexadecimal number?
    ex-ip of any system output of c code is hexadecimal numer of system IP(
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    Google for inet_aton and in_addr or man inet_aton depending on your preference :).

    [edit]You'd probably want to google for ntohl and htonl as well.[/edit]
    Last edited by Scorpions4ever; July 22nd, 2003 at 01:01 PM.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo