Danke für die vielen Antworten 
Ich probiere die vielen Lösungen nacheinander mal aus und schau mir das settimo mal an.
Geb dann Bescheid für welche dieser Lösungen ich mich entschieden habe 
Wenn ich die Lösung von Combie ausprobiere kommt diese Fehlermeldung:
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
WARNUNG: Kategorie 'Language' in der Bibliothek ArduinoStreaming ist ungültig und wird auf 'Uncategorized' festgelegt
sketch_may26a:39:72: error: field 'logports' has incomplete type 'Logport [0]'
Logport logports[] {21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,};
^
C:\Users\lfroe\Documents\Arduino\sketch_may26a\sketch_may26a.ino:6:7: note: definition of 'class Logport' is not complete until the closing brace
class Logport : public Printable
^
sketch_may26a:44:14: error: expected identifier before numeric constant
IPAddress ip(192, 168, 0, 177);
^
sketch_may26a:44:14: error: expected ',' or '...' before numeric constant
sketch_may26a:45:23: error: expected identifier before numeric constant
EthernetServer server(80);
^
sketch_may26a:45:23: error: expected ',' or '...' before numeric constant
sketch_may26a:154:1: error: expected '}' at end of input
}
^
sketch_may26a:43:1: error: too many initializers for 'byte [0] {aka unsigned char [0]}'
};
^
C:\Users\lfroe\Documents\Arduino\sketch_may26a\sketch_may26a.ino: In member function 'void Logport::setup()':
sketch_may26a:64:25: error: invalid use of non-static member function
Ethernet.begin(mac, ip);
^
sketch_may26a:78:3: error: '((Logport*)this)->Logport::server' does not have class type
server.begin();
^
C:\Users\lfroe\Documents\Arduino\sketch_may26a\sketch_may26a.ino: In member function 'void Logport::loop()':
sketch_may26a:111:27: error: '((Logport*)this)->Logport::server' does not have class type
EthernetClient client = server.available();
^
C:\Users\lfroe\Documents\Arduino\sketch_may26a\sketch_may26a.ino: At global scope:
sketch_may26a:154:1: error: expected unqualified-id at end of input
}
^
exit status 1
field 'logports' has incomplete type 'Logport [0]'
Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.
Fehlt da nicht die gescheifte Klammer?