Here is an example of making available data from serial port /dev/ttyS0 on a linux environment (usually this is COM1 on windows boxes) through a socket (port = 8023).
socat TCP-LISTEN:8023,fork /dev/ttyS0,raw,b9600,echo=0
The baud rate specified here is 9600. fork option lets you make multiple connections to the source of data, which in this case is the serial port.
You can verify the data from the socket by using a telnet or similar application.
telnet localhost 8023