added command to get ip of main ethernet adapter