getting ip and mac
merged