Thread: need an API call...

  1. #1
    Registered User
    Join Date
    Jan 2002

    need an API call...

    is there a simple function that will return the IP address(s) of the machine the program is run on? im looking but i cant find anything.

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    You might need to know Winsock programming to do that sort of thing. Just a suggestion, I don't do Winsock so I can't really point you in any direction. But, that is what first came to mind.
    1978 Silver Anniversary Corvette

  3. #3
    Registered User
    Join Date
    Dec 2001
    try using something like


    (you might need to use WSAAsyncGetHostByName if you are using Socket windows).

    good luck
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  4. #4
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    If that doesn't work (and there's no reason why it shouldn't), here's a FAQ with three alternate methods.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  5. #5
    Registered User WayTooHigh's Avatar
    Join Date
    Aug 2001
    Sometimes, the farthest point from the center is the center itself.

    Your life is your canvas, it's only as beautiful as you paint it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. minix system call pls help for project
    By porvas in forum Linux Programming
    Replies: 2
    Last Post: 06-14-2009, 02:40 AM
  2. Inline asm
    By brietje698 in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2007, 02:54 PM
  3. Getting position from game..
    By brietje698 in forum C++ Programming
    Replies: 1
    Last Post: 10-26-2007, 12:15 PM
  4. C system call and library call
    By Coconut in forum C Programming
    Replies: 6
    Last Post: 08-22-2002, 11:20 AM
  5. how do you call api calls
    By ismael86 in forum Windows Programming
    Replies: 8
    Last Post: 05-12-2002, 09:09 AM