Programming and Scripting :: How to find machine's IP address (localhost)?



Thanks guys!  :D

I see my mistake -- I was trying to redirect the results of ifconfig to the variable (something like ifconfig >myVar) rather than assigning the results to the variable.

Richard


original here.