As a developer, sometimes you need to obtain about the network adapters and network config of your local machine..... so i created a simple code snippets that might help somebody!!!
for simplicity I only checked for Ethernet interface only.... so let's check it out