LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   script to get IP address of client pc (https://www.linuxquestions.org/questions/linux-networking-3/script-to-get-ip-address-of-client-pc-446510/)

semenick 05-19-2006 03:30 PM

script to get IP address of client pc
 
client pcs connect to Redhat over a local network. Is there a shell script, perl command etc that I can use to determine their IP address when they login?
Thanks,
Paul

acid_kewpie 05-19-2006 03:36 PM

can you give us more details on how and when you want to track these connections? do you mean that you want the server to monitor this? or the client? if it's the server i would probably just look towards an iptables ulog filter to record incoming connections to a certain port. this might not make any sense to what you want to achieve.

pljvaldez 05-19-2006 03:36 PM

How are they connecting and what do you mean by logging in?

Are users sshing into the box from your local LAN? Or are the client machines authenticating against an LDAP server? Or is the RedHat box a DHCP server? There may be different ways of doing this depending on what the situation that your interested in...


All times are GMT -5. The time now is 07:57 PM.