Results 1 to 2 of 2

Thread: Trivial Networking Question, gethostbyname

  1. #1
    Join Date
    Oct 2008
    Beans
    39

    Trivial Networking Question, gethostbyname

    I am writing some code for my Systems class, and I need someway to get my local IP address. Every attempt so far (passing localhost through getaddrinfo) has proved fruitless - I've gotten 127.0.0.1 every time. Should I pass something else, or is there an easier method?

    Thanks,

  2. #2
    Join Date
    Oct 2008
    Beans
    39

    Re: Trivial Networking Question, gethostbyname

    nvm

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •