My MAC is coected to Etheet and Wifi at a time. Both are different networks. I wanted to know from which interface my system is accessing inteet. I want a command to check this. By giving traceroute google.com , i can get default route, as i know ip addresses of both networks. But the case is how can i detect this in remote machines whose ip addresses are unknown when i give ifconfig I see en0 and en1 are assigned with two diff ips and are active. Even from this i am unable to differentiate.
