Please refer to the design in the link below.
Design Store : Nios II Simple Socket Server For C10 LP
https://fpgacloud.intel.com/devstore/platform/17.1.0/Standard/nios-ii-simple-socket- server-for-c10-lp/
--------------------
Category: Ethernet
Tools: Quartus® Prime
Device: Cyclone® 10 LP