You can buy a fiber modem to transmit your signal by fiber optics. It is expensive for both fiber modem and optical fiber.
I never tested before but it sounds you can use the RS-485 interface with twist cable to transmite low baud rate to 4KM. You may need some repeaters.
I hope it help