Its possible but if you are new to Arduinos its not trivial, and you need a good understanding of how TCPIP works.
You need this
https://playground.arduino.cc/Code/SerialIP/ which is a SLIP library for Arduino
and an old PC running XP , as XP was the last Windows OS that contained Winslip, otherwise you will have to find a version of Winslip which will run on current Windows based OS.
Slip , which stands for Serial Line Internet Protocol, allows the sending of IP datagrams over a normal
serial connection and was widely used in the early 1980s .
Its quite slow , so not practical for sending large amounts of data.
Ive not used it on an Arduino yet, but have used it on a Rasperry PI and it works surprisingly well.