delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/09/03:26:48

From: bd733 AT rgfn DOT epcc DOT edu (Jason M. Daniels)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: TCP/IP, what is my IP address?
Date: 9 Jun 1997 05:55:09 GMT
Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX
Message-ID: <5ng5rt$eo6@news.epcc.edu>
References: <Pine DOT SGI DOT 3 DOT 93 DOT 970609112252 DOT 22353A-100000 AT gibson DOT eee DOT upd DOT edu DOT ph>
NNTP-Posting-Host: rgfn.epcc.edu
Lines: 16
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Orlando Andico (orly AT gibson DOT eee DOT upd DOT edu DOT ph) wrote:
> Uhm. If you're using UNIX, you can do something like this:

<snip>

>  tmpentry = gethostbyname ("localhost");

<snip>

Won't this always return 127.0.0.1, though?

--
Jason Daniels -- bd733 AT rgfn DOT epcc DOT edu
---> BELIEVE THE LIE <---
Linux: The choice of a GNU generation.
Winblows 95: The world's best-selling computer virus.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019