split out local ip getting into a variable for readability