SMS messages are sent through a message centre. It might be owned by your carrier or a third party. On Android in Messages if you look in settings under Advanced you’ll see SMSC followed by a phone number. That’s the number of the message centre your phone contacts to send an SMS