hello all, i'm writing a little server that will run from xinetd. since xinetd servers read incoming data from stdin and write outgoing data to stdout, i don't see how to get the IP number of the remote host. one way to do that is to read the REMOTE_HOST environment variable. i'm having confusing results with this though.
on one box (Mandrake 8.2 with xinetd-2.3.4-4mdk, the server starts with the environment variable REMOTE_HOST set to the hostname of the remote box (since i'm testing, it's always localhost.localdomain, which is what 127.0.0.1 is mapped to in /etc/hosts. this is what i expected. on another box (Mandrake 8.1 with xinetd-2.3.3-4mdk, REMOTE_HOST is not set (does not exist in the environment). the only other difference that i can think of that might be relevant is SECURE_LEVEL. on the one with REMOTE_HOST set, it's 2. on the other (with REMOTE_HOST NOT set), it's 3. i doubt whether SECURE_LEVEL is the cause of this though. REMOTE_HOST should always be visible regardless of security level since the server (running from xinetd) will very often need the IP number or hostname of the remote host that's connecting. does anyone have any ideas where the second box is going wrong? or is there a better way to see what the remote hostname/IP is? thanks for any pointers. tiger _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
