Route Incoming SMS over data connection

Is it possible to setup a route to send the contents and details of an incoming sms over the active data connection to a specific port.

Eg. Setup a listener binding to port TCP/4000 and if an sms is received by the inbound number assigned to a hologram sim instead of sending that sms to the device as an sms reroute it over an established data connection to the specific port.

Alot of the 3g/4g modems now days don’t have a serial AT interface so its not possible to just listen for sms’s that way. A 2g modem that does have a serial interface is not possible as the last 2g network in Australia shuts down early next year