# mco_HA_get_port

This function returns the port associated with the specified I/O channel.

### For an overview see page HA Applications

### Prototype

        uint4	mco_HA_get_port(	mco_channel_h chan);

### Arguments

chan | The I/O channel of the replica.

### Description

This function returns the port associated with the specified I/O channel.

### Return Codes

uint4 | The port associated with the replica’s I/O channel as a 16 bit integer in host byte order (for TCP and UDP protocols only).