Remove unused code
Use the request-provided remote address.
Handle SMS gateway errors