Serial and Ethernet are two very different communication mediums and can't be connected by way of changing the pinout of a connector. On top of the communication layer is the protocol which is the language that devices speak and that also needs to be either bridged or converted (bridging is easier). You need something designed specifically to bridge the specific serial communications protocol for each device (assuming they are different protocols) to the appropriate Ethernet protocol.