You need to have working local network with DHCP router to ensure automatic connection (no need to set IP address for Arduino and PC) Just connect Arduino with attached Ethernet shield (or Ethernet module) to any free socket in your router