JT Noble SMS documentation home

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

SettingValue
Hostsmpp.sms.jtnoble.com
Port2775
ProtocolSMPP 3.4
Bind typesTransmitter (TX), Receiver (RX), Transceiver (TRX)
system_idFrom the SMPP portal. Lower-case letters and digits, up to 15 characters.
password8 characters, made by the portal. Shown once when the bind is made or the password is reset.
system_typeLeave empty
interface_version0x34
Keep aliveSend 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

  1. Get a bind from your account manager or reseller. See Binds.
  2. Copy the system_id from the portal and set or reset the password there.
  3. Add every public IP address your client connects from. The firewall picks it up within about a minute.
  4. Make sure the bind has credit. A new bind starts at 0 SMS. See Credits and balance.

Quick test

  1. Bind as TRX. command_status = 0 means you are in.
  2. Send a submit_sm to a test number with registered_delivery = 1.
  3. Keep the connection open and wait for the deliver_sm delivery receipt.
  4. 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

On this page