SMPP connection guide
Host, port, bind settings, long messages and how to test your first bind.
Use SMPP if you already run an SMPP client, send high volumes, or want a direct connection for your platform.
Connection settings
| Setting | Value |
|---|---|
| Host | smpp.sms.jtnoble.com |
| Port | 2775 |
| Protocol | SMPP 3.4 |
| Bind types | Transmitter (TX), Receiver (RX), Transceiver (TRX) |
system_id | From the SMPP portal. Lower-case letters and digits, up to 15 characters. |
password | 8 characters, made by the portal. Shown once when the bind is made or the password is reset. |
system_type | Leave empty |
interface_version | 0x34 |
| Keep alive | Send enquire_link every 30 seconds |
Your IP address must be on the list
Connections are only accepted from the public IP addresses on your bind's allowlist. A connection from any other address is refused at the firewall. It is dropped before any SMPP reply, so your client sees a timeout or "connection refused", not a bind error. Add your IPs in the SMPP portal.
Long messages: UDH or SAR
Split long messages yourself, with UDH or SAR, and send one submit_sm per part. message_payload works only for text that fits one SMS. Above that it is refused with 0x00000001 ESME_RINVMSGLEN. See Encoding and long messages.
Before you connect
- Get a bind from your account manager or reseller. See Binds.
- Copy the
system_idfrom the portal and set or reset the password there. - Add every public IP address your client connects from. The firewall picks it up within about a minute.
- Make sure the bind has credit. A new bind starts at 0 SMS. See Credits and balance.
Quick test
- Bind as TRX.
command_status = 0means you are in. - Send a
submit_smto a test number withregistered_delivery = 1. - Keep the connection open and wait for the
deliver_smdelivery receipt. - Check Live status and Reports in the portal.
Sample client
A send with long-message splitting, in Python with the smpplib package (pip install smpplib):
import os
import smpplib.client, smpplib.consts, smpplib.gsm
client = smpplib.client.Client("smpp.sms.jtnoble.com", 2775, allow_unknown_opt_params=True)
client.set_message_received_handler(lambda pdu: print("receipt", pdu.short_message))
client.connect()
client.bind_transceiver(system_id=os.environ["JTSMS_SMPP_ID"], password=os.environ["JTSMS_SMPP_PASSWORD"])
text = "A message longer than one SMS is split into parts here. " * 5
parts, encoding, esm_class = smpplib.gsm.make_parts(text)
for part in parts:
client.send_message(
source_addr_ton=smpplib.consts.SMPP_TON_ALNUM,
source_addr_npi=smpplib.consts.SMPP_NPI_UNK,
source_addr="MYSHOP",
dest_addr_ton=smpplib.consts.SMPP_TON_INTL,
dest_addr_npi=smpplib.consts.SMPP_NPI_ISDN,
destination_addr="2348030000000",
short_message=part,
data_coding=encoding,
esm_class=esm_class,
registered_delivery=True,
)
client.listen()make_parts puts a UDH on every part. client.listen() keeps the session open for receipts. In a real service run it in its own thread and send enquire_link every 30 seconds.
No TLS on SMPP
SMPP runs on plain TCP port 2775. There is no TLS port. If your traffic must be encrypted end to end, ask support about a VPN or private link.
Next
- Sending messages: what to put in
submit_sm - Delivery receipts
- Bind and submit errors