ipconfig & external ip functions