home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10432 < prev    next >
Encoding:
Text File  |  1992-08-27  |  869 b   |  22 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!cs.utexas.edu!convex!news.utdallas.edu!corpgate!brtph560!nuntius
  3. From: Bill Hansley <billh@mesaadm.cre.nt.com>
  4. Subject: How to find IP addr of telnet session initiator??
  5. Message-ID: <1992Aug27.132017.22494@brtph560.bnr.ca>
  6. Sender: news@brtph560.bnr.ca (Usenet News)
  7. Organization: NTI
  8. X-Useragent: Nuntius v1.1b3
  9. Date: Thu, 27 Aug 1992 13:20:17 GMT
  10. Lines: 10
  11.  
  12. If I telnet into a host and run a script/program that needs to know my IP
  13. number, how can the program figure this out for itself (other than
  14. prompting the user)?  The man pages for our telnetd (Interactive Unix
  15. v3.0) mention something about Xdisplay origination, but mention nothing
  16. about how to access this info. Am I missing something really obvious
  17. here? A bit of C code, or a shell fragment, or just an idea of a place to
  18. look?
  19.  
  20. Much thanks,
  21. Bill Hansley
  22.