How to view and edit the ephemeral port range on Linux?
Following command will list the ephemeral port range in Linux system
sysctl -A | grep ip_local_port_range
If we don't want to reboot, after editing /etc/sysctl.conf file if we execute following command it will be effective.
sysctl -p /etc/sysctl.conf .
The truth of the matter of effective range is output of
sysctl net.ipv4.ip_local_port_range
as mentioned by eckes in comment.