Here’s a serial to Ethernet module that you won’t have to write firmware to build. It uses a Lantronix XPORT module which takes care of all the work for you, including an embedded webserver. Both RS232 and RS485 data buses are connected to the XPORT serial input via a level converter to step the signal down to 3.3V. This solution comes at a price because of the ethernet module, but it would make a nice prototyping tool for testing projects that work on the two serial protocols.