With that said, when you connect to both links, both DHCP servers by default will advertise themselves as the default gateway for all of the traffic. Wired Ethernet is faster than wireless, so if there are two ways to get somewhere, wired will takes precedence over Wi-Fi by default. You didn't specify it, but I'm assuming you get the IP address automatically (via DHCP) both on wireless and wired connection.