After having the cisco lab online for a bit, I didn't realize that it would more than double my power bill. Looking for a way to turn it off remotely and I got the idea from a colleague to make my own with Arduino and he helped put it together.

I'm not sure why a new tab has to be used and why text based browsers like Lynx or Curl don't work. Can try to figure that out in the future if I have time.
I did wait until the weekend to test it because I was paranoid thatit would do something unexpected might happen while I wasn’t home.
Update: It has had no problems and has been stable and I’ve been using it for a few weeks now as of October 9th. All the way through the end of 2019.
Here is my Arduino Code:<SPI.h>
#include <Ethernet.h>
boolean incoming = 0;
int PowerRelayK1 = 6;
byte mac[] = { 0x02, 0x02, 0x02, 0x00, 0x00, 0x01 };
byte ip[] = { 10, 3, 72, 98 };
byte gateway[] = { 10, 3, 72, 254 };
byte subnet[] = { 255, 255, 252, 0 };
EthernetServer server = EthernetServer(80);
void setup()
{
Serial.begin(9600);
Serial.print("Power is on ");
pinMode(PowerRelayK1, OUTPUT);
digitalWrite(PowerRelayK1, HIGH);
Serial.print("Relay output set");
// initialize the ethernet device
Ethernet.begin(mac, ip, gateway, subnet);
Serial.print("network is on");
/*Commented out DHCP code to disable it*/
/* start the Ethernet connection and get an IP via DHCP:
Serial.println("Initialize Ethernet with DHCP:");
if (Ethernet.begin(mac,ip) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
if (Ethernet.hardwareStatus() == EthernetNoHardware) {
Serial.println("Ethernet shield was not found. Sorry, can't run without hardware. :(");
} else if (Ethernet.linkStatus() == LinkOFF) {
Serial.println("Ethernet cable is not connected.");
}
}
*/
}
while (true) {
delay(1);
}
}
// print your local IP address:
// Serial.print("My IP address: ");
// Serial.println(Ethernet.localIP());
Serial.print("My IP address: ");
Serial.println(Ethernet.localIP());
server.begin();
}
void loop()
{
EthernetClient client = server.available();
if (client) {
// an http request ends with a blank line
boolean currentLineIsBlank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
// if you've gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so you can send a reply
// reads URL string from $ to first blank space
if (incoming && c == ' ') {
incoming = 0;
}
if (c == '$') {
incoming = 1;
}
// Checks for the URL string $1 or $0
if (incoming == 1) {
// Serial.print("debugging c value is: ");
// Serial.println(c);
if (c == '0') {
digitalWrite(PowerRelayK1, HIGH);
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
client.println("RELAY IS OFF!");
}
if (c == '1') {
digitalWrite(PowerRelayK1, LOW);
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
client.println("RELAY IS ON!");
}
}
if (c == '\n') {
// you're starting a new line
currentLineIsBlank = true;
}
else if (c != '\r') {
// you've gotten a character on the current line
currentLineIsBlank = false;
}
}
}
// give the web browser time to receive the data
delay(1);
// close the connection:
client.stop();
}
}
/*commented out DHCP Renewal Code to disable it*/
/*
switch (Ethernet.maintain()) {
case 1:
//renewed fail
//Serial.println("Error: renewed fail");
break;
case 2:
//renewed success
//Serial.println("Renewed success");
//print your local IP address:
//Serial.print("My IP address: ");
//Serial.println(Ethernet.localIP());
break;
case 3:
//rebind fail
//Serial.println("Error: rebind fail");
break;
case 4:
//rebind success
//Serial.println("Rebind success");
//print your local IP address:
//Serial.print("My IP address: ");
//Serial.println(Ethernet.localIP());
break;
default:
//nothing happened
break;
}
*/
Here are some of the useful sources I found along the
way.
https://www.digikey.com/en/maker/blogs/2018/how-to-get-started-with-arduino
https://www.instructables.com/id/Arduino-Ethernet-Shield-Tutorial/
https://codebender.cc/sketch:1138#Web%20Server.ino
https://www.arduino.cc/reference/en/language/functions/digital-io/digitalread/
http://www.circuitbasics.com/setting-up-a-5v-relay-on-the-arduino/
https://randomnerdtutorials.com/guide-for-relay-module-with-arduino/
https://upload.wikimedia.org/wikipedia/commons/c/c9/Pinout_of_ARDUINO_Board_and_ATMega328PU.svg