---
title: "Ethernet3"
url: "https://maker.wiznet.io/lawrence/projects/Ethernet3/"
markdown_url: "https://maker.wiznet.io/lawrence/projects/Ethernet3/md"
type: "UCC: User Created Content"
author: "lawrence"
author_url: "https://maker.wiznet.io/lawrence/"
original_author: "lawrence"
original_url: "https://github.com/khoih-prog/Ethernet3"
published: "2021-06-07"
language: "en"
hardware: ["Arduino"]
likes: 0
views: 562
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Ethernet3

> Ethernet3

Original author: lawrence (source: https://github.com/khoih-prog/Ethernet3)

## Components

- **Arduino** x 1: Arduino
- Software: **Arduino IDE** ([docs](https://www.arduino.cc/en/software))

## Article

###### Original Link:? <https://github.com/khoih-prog/Ethernet3>

## Ethernet3 v1.5.x

Ethernet library for Arduino and Ethernetshield2 / WIZ550io / WIZ850io / USR-ES1 with Wiznet W5500 chip based on the Ethernet2 library of arduino.org I added many new functionalities.

### new in 1.5

- custom hostname for DHCP

- the PHY is configurable

- Wake on LAN

- added new example for webclient "WebClientReadResponse.ino"

You need to include

```
#include <Ethernet3.h> // instead Ethernet.h
#include <EthernetUdp3.h> // instead EthernetUdp.h for UDP functionality
```

### Custom Hostname

For use with DHCP you can set a custom hostname, this must be done before Ethernet.begin(mac).

```
Ethernet.setHostname(char* hostname);
```

### PHY Configuration

The PHY is now configurable, this must done after Ethernet.begin() Following modes are possible: HALF_DUPLEX_10, FULL_DUPLEX_10, HALF_DUPLEX_100, FULL_DUPLEX_100, FULL_DUPLEX_100_AUTONEG, POWER_DOWN, ALL_AUTONEG (default)

```
Ethernet.phyMode(phyMode_t mode);
```

### Wake on LAN

You can set the Wake on LAN functionality

```
Ethernet.WoL(bool wol);
```

### what's next

In version 2 there will mDNS and a large code cleanup A new NTP library is published <https://github.com/sstaub/NTP>

---

Source: https://maker.wiznet.io/lawrence/projects/Ethernet3/
