Detects IP address on wlan device

This makes it work on an old laptop I try this script on :-)