# HAproxy not listening to all IP address

**URL:** <https://www.ruby-forum.com/t/haproxy-not-listening-to-all-ip-address/152465>\
**Category:** Rails\
**Created:** [November 4, 2008, 10:29am UTC](https://www.ruby-forum.com/t/haproxy-not-listening-to-all-ip-address/152465 "2008-11-04T10:29:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 4, 2008, 10:29am UTC](https://www.ruby-forum.com/t/haproxy-not-listening-to-all-ip-address/152465/1 "2008-11-04T10:29:38Z")

</div>

guys,  
i am trying to install HAproxy infront of my webserver.  
usually my webserver listens on port 80 and since we have 5 ip address  
serving 5 different sites on the same physical server the webserver  
listens to all these ips and proxy the traffic to the relavent app  
servers.

now the problem is if want to loadbalance i should install HAproxy on  
port 80 and there lies the problem. Because HAproxy as i know after  
going through the config files for the last 2 days doesn’t listen to  
more than one ip. now since i have traffic related to 5 ips coming on  
one port i have no clue how to make HAProxy listen to all that traffic  
and then proxy that to their app servers.

i am really amused HAproxy listens to only one ip per port.

looking for help from you guys.

Cheers,  
Deepu.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 4, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/haproxy-not-listening-to-all-ip-address/152465/2 "2008-11-04T12:11:12Z")

</div>

Make HAproxy listen for the 0.0.0.0 IP, this will make it listen on  
all possible IPs for your machine.

- 

Maurício Linhares  
[http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
(en)  
João Pessoa, PB, +55 83 8867-7208
