# Get bind ip-s and port-s via stat socket

**URL:** <https://discourse.haproxy.org/t/get-bind-ip-s-and-port-s-via-stat-socket/6265>\
**Category:** Help!\
**Created:** [February 18, 2021, 3:26pm UTC](https://discourse.haproxy.org/t/get-bind-ip-s-and-port-s-via-stat-socket/6265 "2021-02-18T15:26:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marypoppins](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@marypoppins](https://discourse.haproxy.org/u/marypoppins)\
**Post date:** [February 18, 2021, 3:26pm UTC](https://discourse.haproxy.org/t/get-bind-ip-s-and-port-s-via-stat-socket/6265/1 "2021-02-18T15:26:41Z")

</div>

Dear All,

A have a config, in which there are a stats socket definition and more proxies with the listen/bind/server definitions. Is there any way to get the bind ip and port via a socket command?  
However I can get info about the backends, I can not find a way to get the bind properties.  
I was able to create a global environment variable and get it with the echo “show env VAR” |socket… command.  
But maybe you knows a more elegant solution…  
Thank you very much
