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