Class NetworkPorts
Defines some common network port numbers as well as the TryParse(string, out int) method.
Namespace: Neon.Net
Assembly: Neon.Common.dll
Syntax
public static class NetworkPorts
Fields
AAA
Authentication, Authorization, and Accounting port. This port was originally used by the RADIUS protocol and is still used fairly widely (1645).
Declaration
public const int AAA = 1645
Field Value
| Type | Description |
|---|---|
| int |
AMQP
The Advanced Messaging Queue Protocol (AMQP) port (e.g. RabbitMQ).
Declaration
public const int AMQP = 5672
Field Value
| Type | Description |
|---|---|
| int |
AppCacherNg
apt-cacher-ng Debian/Ubuntu package proxy port.
Declaration
public const int AppCacherNg = 3142
Field Value
| Type | Description |
|---|---|
| int |
Cadence
Uber Cadence primary cluster port.
Declaration
public const int Cadence = 7933
Field Value
| Type | Description |
|---|---|
| int |
Cassandra
The Cassnadra database port.
Declaration
public const int Cassandra = 9042
Field Value
| Type | Description |
|---|---|
| int |
Consul
The HashiCorp Consul service (RPC) port (8500). The protocol will be HTTP or HTTPS depending on how Consul is configured.
Declaration
public const int Consul = 8500
Field Value
| Type | Description |
|---|---|
| int |
CouchbaseApi
The Couchbase Server REST API port (8092).
Declaration
public const int CouchbaseApi = 8092
Field Value
| Type | Description |
|---|---|
| int |
CouchbaseSyncGatewayAdmin
The Couchbase Sync Gateway administration REST API port (4985).
Declaration
public const int CouchbaseSyncGatewayAdmin = 4985
Field Value
| Type | Description |
|---|---|
| int |
CouchbaseSyncGatewayPublic
The Couchbase Sync Gateway public REST API port (4984).
Declaration
public const int CouchbaseSyncGatewayPublic = 4984
Field Value
| Type | Description |
|---|---|
| int |
CouchbaseWebAdmin
The Couchbase Server web administration user interface port (8091).
Declaration
public const int CouchbaseWebAdmin = 8091
Field Value
| Type | Description |
|---|---|
| int |
DAYTIME
Daytime (RFC 867) port (13).
Declaration
public const int DAYTIME = 13
Field Value
| Type | Description |
|---|---|
| int |
DNS
Domain Name System port (53).
Declaration
public const int DNS = 53
Field Value
| Type | Description |
|---|---|
| int |
Docker
The Docker API port (2375).
Declaration
public const int Docker = 2375
Field Value
| Type | Description |
|---|---|
| int |
DockerSwarm
The Docker Swarm node advertise port (2377).
Declaration
public const int DockerSwarm = 2377
Field Value
| Type | Description |
|---|---|
| int |
ECHO
PING port (7).
Declaration
public const int ECHO = 7
Field Value
| Type | Description |
|---|---|
| int |
ElasticSearchHttp
The ElasticSearch client HTTP port (9200).
Declaration
public const int ElasticSearchHttp = 9200
Field Value
| Type | Description |
|---|---|
| int |
ElasticSearchTcp
The ElasticSearch client TCP port (9300).
Declaration
public const int ElasticSearchTcp = 9300
Field Value
| Type | Description |
|---|---|
| int |
Etcd
The Etcd API port (2379).
Declaration
public const int Etcd = 2379
Field Value
| Type | Description |
|---|---|
| int |
EtcdPeer
The internal Etcd cluster peer API port (2380).
Declaration
public const int EtcdPeer = 2380
Field Value
| Type | Description |
|---|---|
| int |
FTP
File Transfer Protocol (control) port (21).
Declaration
public const int FTP = 21
Field Value
| Type | Description |
|---|---|
| int |
FTPDATA
File Transfer Protocol (data) port (20).
Declaration
public const int FTPDATA = 20
Field Value
| Type | Description |
|---|---|
| int |
GrafanaDashboard
Default port for the Grafana dashboard.
Declaration
public const int GrafanaDashboard = 9000
Field Value
| Type | Description |
|---|---|
| int |
HTTP
HyperText Transport Protocol port (80).
Declaration
public const int HTTP = 80
Field Value
| Type | Description |
|---|---|
| int |
HTTPS
Secure HyperText Transport Protocol port (443).
Declaration
public const int HTTPS = 443
Field Value
| Type | Description |
|---|---|
| int |
IMAP
Internet Message Access Protocol port (143).
Declaration
public const int IMAP = 143
Field Value
| Type | Description |
|---|---|
| int |
IstioEnvoyAdmin
Envoy sidecar admin port.
Declaration
public const int IstioEnvoyAdmin = 15000
Field Value
| Type | Description |
|---|---|
| int |
IstioEnvoyInbound
Envoy sidecar inbound port.
Declaration
public const int IstioEnvoyInbound = 15006
Field Value
| Type | Description |
|---|---|
| int |
IstioEnvoyOutbound
Envoy sidecar outbound port.
Declaration
public const int IstioEnvoyOutbound = 15001
Field Value
| Type | Description |
|---|---|
| int |
IstioEnvoyTelemetry
Envoy sidecar Prometheus telemetry.
Declaration
public const int IstioEnvoyTelemetry = 15090
Field Value
| Type | Description |
|---|---|
| int |
IstioEnvoyTunnel
Envoy sidecar tunnel port (inbound).
Declaration
public const int IstioEnvoyTunnel = 15008
Field Value
| Type | Description |
|---|---|
| int |
IstioIstioHealth
Istio health check.
Declaration
public const int IstioIstioHealth = 15021
Field Value
| Type | Description |
|---|---|
| int |
IstioIstioTelemetry
Merged Prometheus telemetry.
Declaration
public const int IstioIstioTelemetry = 15020
Field Value
| Type | Description |
|---|---|
| int |
Kibana
The Kibana website port (5601).
Declaration
public const int Kibana = 5601
Field Value
| Type | Description |
|---|---|
| int |
KubernetesApiServer
Kubernetes API port.
Declaration
public const int KubernetesApiServer = 6443
Field Value
| Type | Description |
|---|---|
| int |
LDAP
Lightweight Directory Access Protocol port (389).
Declaration
public const int LDAP = 389
Field Value
| Type | Description |
|---|---|
| int |
LDAPS
Lightweight Directory Access Protocol over TLS/SSL port (636).
Declaration
public const int LDAPS = 636
Field Value
| Type | Description |
|---|---|
| int |
NTP
Network Time Protocol port (123).
Declaration
public const int NTP = 123
Field Value
| Type | Description |
|---|---|
| int |
OpenVPN
The OpenVPN port.
Declaration
public const int OpenVPN = 1194
Field Value
| Type | Description |
|---|---|
| int |
POP3
Post Office Protocol version 3 port (110).
Declaration
public const int POP3 = 110
Field Value
| Type | Description |
|---|---|
| int |
Postgres
The Postgres database port.
Declaration
public const int Postgres = 5432
Field Value
| Type | Description |
|---|---|
| int |
PrometheusDashboard
Default port for the Prometheus dashboard.
Declaration
public const int PrometheusDashboard = 9090
Field Value
| Type | Description |
|---|---|
| int |
PrometheusMetrics
The standard Prometheus scraping port exposed by Neon related services, including custom user services built on Neon.Service.
Declaration
public const int PrometheusMetrics = 9762
Field Value
| Type | Description |
|---|---|
| int |
RADIUS
RADIUS authentication and billing protocol (port 1812).
Declaration
public const int RADIUS = 1812
Field Value
| Type | Description |
|---|---|
| int |
RabbitMQAdmin
RabbitMQ Admin dashboard port.
Declaration
public const int RabbitMQAdmin = 15672
Field Value
| Type | Description |
|---|---|
| int |
SFTP
Secure File Transfer Protocol port (22).
Declaration
public const int SFTP = 22
Field Value
| Type | Description |
|---|---|
| int |
SIP
Session Initiation Protocol port (5060).
Declaration
public const int SIP = 5060
Field Value
| Type | Description |
|---|---|
| int |
SIPS
Secure Session Initiation Protocol (over TLS) port (5061).
Declaration
public const int SIPS = 5061
Field Value
| Type | Description |
|---|---|
| int |
SMTP
Simple Message Transport Protocol port (25).
Declaration
public const int SMTP = 25
Field Value
| Type | Description |
|---|---|
| int |
SNMP
Simple Network Managenment Protocol (SNMP) port (161).
Declaration
public const int SNMP = 161
Field Value
| Type | Description |
|---|---|
| int |
SNMPTRAP
Simple Network Managenment Protocol (trap) port (162)
Declaration
public const int SNMPTRAP = 162
Field Value
| Type | Description |
|---|---|
| int |
SOCKS
The SOCKS (Socket Secure) proxy port (1080).
Declaration
public const int SOCKS = 1080
Field Value
| Type | Description |
|---|---|
| int |
SQUID
The default port for the Squid open source proxy project port (3128).
Declaration
public const int SQUID = 3128
Field Value
| Type | Description |
|---|---|
| int |
SSH
Secure Shell port (22).
Declaration
public const int SSH = 22
Field Value
| Type | Description |
|---|---|
| int |
SSL
Secure Socket Layer port (443).
Declaration
public const int SSL = 443
Field Value
| Type | Description |
|---|---|
| int |
SysLog
The SysLog UDP port (514).
Declaration
public const int SysLog = 514
Field Value
| Type | Description |
|---|---|
| int |
TDAgentForward
The Treasure Data td-agent forward port to accept TCP and UDP traffic (24224).
Declaration
public const int TDAgentForward = 24224
Field Value
| Type | Description |
|---|---|
| int |
TDAgentHttp
The Treasure Data td-agent HTTP port (9880).
Declaration
public const int TDAgentHttp = 9880
Field Value
| Type | Description |
|---|---|
| int |
TELNET
Remote terminal protocol port (23).
Declaration
public const int TELNET = 23
Field Value
| Type | Description |
|---|---|
| int |
TFTP
Trivial File Transfer Protocol port (69).
Declaration
public const int TFTP = 69
Field Value
| Type | Description |
|---|---|
| int |
TIME
TIME protocol port (37).
Declaration
public const int TIME = 37
Field Value
| Type | Description |
|---|---|
| int |
Temporal
Temporal primary cluster port.
Declaration
public const int Temporal = 7233
Field Value
| Type | Description |
|---|---|
| int |
Vault
The HashiCorp Vault service port (8200).
Declaration
public const int Vault = 8200
Field Value
| Type | Description |
|---|---|
| int |
Methods
TryParse(string, out int)
Attempts to parse an integer or well known port name from a string and return the integer TCP port number.
Declaration
public static bool TryParse(string input, out int port)
Parameters
| Type | Name | Description |
|---|---|---|
| string | input | The port number or name as as string. |
| int | port | Receives the parsed port number. |
Returns
| Type | Description |
|---|---|
| bool |
|