title: How to view and edit the ephemeral port range on Linux?
body: <p>In my Linux system ephemeral port range  is showing different ranges as follows</p>
  
  <pre><code>$ cat /proc/sys/net/ipv4/ip_local_port_range 
  32768  61000 
  </code></pre>
  
  <p>   </p>
  
  <pre><code>cat /etc/sysctl.conf | grep net.ipv4.ip_local_port_range
  net.ipv4.ip_local_port_range = 9000 65500
  </code></pre>
  
  <p>Which will be the effective ephemeral port range in my system?</p>