[[port-numbers]]
== Appendix A. Osmocom TCP/UDP Port Numbers

The Osmocom GSM system utilizes a variety of TCP/IP based protocols. The
table below provides a reference as to which port numbers are used by
which protocol / interface.

[[table.port]]
.TCP/UDP port numbers
[options="header",cols="10%,10%,40%,40%"]
|===============
|L4 Protocol|Port Number|Purpose|Software
|UDP|2427|MGCP GW|osmo-bsc_mgcp, osmo-mgw
|TCP|2775|SMPP (SMS interface for external programs)|osmo-nitb
|TCP|3002|A-bis/IP OML|osmo-bts, osmo-bsc, osmo-nitb
|TCP|3003|A-bis/IP RSL|osmo-bts, osmo-bsc, osmo-nitb
|TCP|4227|telnet (VTY)|osmo-pcap-client
|TCP|4228|telnet (VTY)|osmo-pcap-server
|TCP|4236|Control Interface|osmo-trx
|TCP|4237|telnet (VTY)|osmo-trx
|TCP|4238|Control Interface|osmo-bts
|TCP|4239|telnet (VTY)|osmo-stp
|TCP|4240|telnet (VTY)|osmo-pcu
|TCP|4241|telnet (VTY)|osmo-bts
|TCP|4242|telnet (VTY)|osmo-nitb, osmo-bsc, cellmgr-ng
|TCP|4243|telnet (VTY)|osmo-bsc_mgcp, osmo-mgw
|TCP|4244|telnet (VTY)|osmo-bsc_nat
|TCP|4245|telnet (VTY)|osmo-sgsn
|TCP|4246|telnet (VTY)|osmo-gbproxy
|TCP|4247|telnet (VTY)|OsmocomBB
|TCP|4249|Control Interface|osmo-nitb, osmo-bsc
|TCP|4250|Control Interface|osmo-bsc_nat
|TCP|4251|Control Interface|osmo-sgsn
|TCP|4252|telnet (VTY)|sysmobts-mgr
|TCP|4253|telnet (VTY)|osmo-gtphub
|TCP|4254|telnet (VTY)|osmo-msc
|TCP|4255|Control Interface|osmo-msc
|TCP|4256|telnet (VTY)|osmo-sip-connector
|TCP|4257|Control Interface|osmo-ggsn, ggsn (OpenGGSN)
|TCP|4258|telnet (VTY)|osmo-hlr
|TCP|4259|Control Interface|osmo-hlr
|TCP|4260|telnet (VTY)|osmo-ggsn
|TCP|4261|telnet (VTY)|osmo-hnbgw
|TCP|4262|Control Interface|osmo-hnbgw
|TCP|4263|Control Interface|osmo-gbproxy
|TCP|4264|telnet (VTY)|osmo-cbc
|TCP|4265|Control Interface|osmo-cbc
|TCP|4266|D-GSM MS Lookup: mDNS serve|osmo-hlr
|TCP|4267|Control Interface|osmo-mgw
|TCP|4268|telnet (VTY)|osmo-uecups
|SCTP|4268|UECUPS|osmo-uecups
|TCP|4269|telnet (VTY)|osmo-e1d
|TCP|4271|telnet (VTY)|osmo-smlc
|TCP|4272|Control Interface|osmo-smlc
|TCP|4273|telnet (VTY)|osmo-hnodeb
|TCP|4274|Control Interface|osmo-hnodeb
|TCP|4275|telnet (VTY)|osmo-upf
|TCP|4276|Control Interface|osmo-upf
|TCP|4277|telnet (VTY)|osmo-pfcp-tool
|TCP|4278|Control Interface|osmo-pfcp-tool
|UDP|4729|GSMTAP|Almost every osmocom project
|TCP|5000|A/IP|osmo-bsc, osmo-bsc_nat
|UDP|23000|GPRS-NS over IP default port|osmo-pcu, osmo-sgsn, osmo-gbproxy
|TCP|48049|BSC-CBC (CBSP) default port|osmo-bsc, osmo-cbc
|===============
////
ATTENTION: Keep this list in sync with all of:
https://osmocom.org/projects/cellular-infrastructure/wiki/PortNumbers
https://git.osmocom.org/libosmocore/tree/include/osmocom/vty/ports.h
https://git.osmocom.org/libosmocore/tree/include/osmocom/ctrl/ports.h
////
