[#CChainParams-GetDefaultPort]
= xref:CChainParams.adoc[CChainParams]::GetDefaultPort
:relfileprefix: ../
:mrdocs:

Returns the default P2P port for this chain&period;

== Synopsis

Declared in `&lt;kernel&sol;chainparams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
uint16&lowbar;t
GetDefaultPort() const;
----

== Return Value

The default TCP port number&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
