Local - IP finder (WLAN)


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #! /bin/bash
  2.  
  3. iface="`/sbin/iwconfig 2>&1 | grep '802.11' | cut -d" " -f1`"
  4. /sbin/ifconfig ${iface} | grep 'inet addr:' | grep -v 'inet6\|127.0.0.1' | cut -d: -f2 | cut -d" " -f1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.