I've done it before when it was connected to the router with Command + K, however now when I connect my windows PC directly to my ethernet port in my iMac I can't connect, even though I'm using the IP address of the ethernet port I found in Network settings.