Skip to content

Correct Ethernet.begin() #3764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ EthernetClient clients[4];

void setup() {
// initialize the ethernet device
Ethernet.begin(mac, ip, gateway, subnet);
Ethernet.begin(mac, ip, gateway, gateway, subnet);
// start listening for clients
server.begin();
// Open serial communications and wait for port to open:
Expand Down
2 changes: 1 addition & 1 deletion libraries/Ethernet/examples/ChatServer/ChatServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ boolean alreadyConnected = false; // whether or not the client was connected pre

void setup() {
// initialize the ethernet device
Ethernet.begin(mac, ip, gateway, subnet);
Ethernet.begin(mac, ip, gateway, gateway, subnet);
// start listening for clients
server.begin();
// Open serial communications and wait for port to open:
Expand Down