# SMPP: IP address allowlist

https://docs.sendsms.to/en/guides/smpp-ip-allowlist/

An SMPP connection (bind) with your system_id is accepted only from the IP addresses listed for that SMPP account. Without at least one address the account cannot connect, even with the right password.

## Steps

1. Create a new SMPP account in the cabinet: API and integrations → SMPP settings → SMPP accounts → Create SMPP account. The Allowed IP addresses field is required: one address or subnet per line, up to 20 entries. The password is shown once, right after creation.
2. List the public addresses of the servers that open the SMPP connection to us (the address the connection comes from on the internet, not the server’s internal address). Single IPv4 (203.0.113.10) and IPv6 (2001:db8::10) addresses and subnets are accepted: IPv4 no wider than /24, IPv6 no wider than /48. 0.0.0.0/0, ::/0 and other too-wide subnets are refused.
3. A bind from an address that is not listed gets ESME_RBINDFAIL (0x0000000D), the same answer as a wrong password; the password is not checked from a foreign address and such attempts do not lock your account. If a bind fails, first check which address your server uses to reach the internet.
4. Changing the server address (move, new hosting, NAT, standby site): first add the new address to the account (Change addresses), switch the connection, and only then remove the old address. When an address is removed from the list, a connection open from it is closed at its next message (submit_sm gets ESME_RSUBMITFAIL) and a new bind from it is refused.
5. IPv4 and IPv6 addresses are checked separately: if your server can connect over IPv6, add its IPv6 address too. SMPP accounts created before the rule are marked in the cabinet with the dot “No IP restriction — add addresses”: add addresses before such accounts are switched off.

## Keep in mind

Every change of the address list is recorded in the cabinet audit log. The address list is never disclosed in SMPP responses.
