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: NNTP-Posting-Host: rgfn.epcc.edu Lines: 16 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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: > tmpentry = gethostbyname ("localhost"); 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.