STM32F767Z Nucleo Board connection with router and directly to PC

Hello,
I’m using STM32F767ZI Nucleo Board
Could you please suggest me how to setup the Ethernet connection between the board and pc directly to implement UDP client server
I had plugged the board to Router but it was not connecting tried both static and dynamic ip
so now i want to directly connect it to my laptop through Ethernet cable.
please provide the necessary step which I’m missing while setting up the stm33f7 Ethernet connection
thanks

Hello,

I probably missed this in the past so for a potential newcomers
Take a look UDP_Echo - UDP echo with thread | Mbed

BR, Jan