If the wire is long enough to reach the modem, you may just need a male coupler: https://www.amazon.com/Connector-RFAdapter-Extension-Splitter-Amplifier/dp/B07WS6PS14/ref=sr_1_3