# Unable to bind using ipv6

**URL:** <https://www.ruby-forum.com/t/unable-to-bind-using-ipv6/202114>\
**Category:** NGINX\
**Created:** [January 21, 2011, 11:30pm UTC](https://www.ruby-forum.com/t/unable-to-bind-using-ipv6/202114 "2011-01-21T23:30:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 21, 2011, 11:30pm UTC](https://www.ruby-forum.com/t/unable-to-bind-using-ipv6/202114/1 "2011-01-21T23:30:13Z")

</div>

[http://pastebin.com/raw.php?i=hby7CsDs](http://pastebin.com/raw.php?i=hby7CsDs)

Using Ubuntu 10.10, As soon as I change the line back to “Listen 80;”  
nginx  
works fine.

[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)  
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)  
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)  
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)  
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)  
[emerg]: still could not bind()

---

<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:** [January 21, 2011, 11:42pm UTC](https://www.ruby-forum.com/t/unable-to-bind-using-ipv6/202114/2 "2011-01-21T23:42:08Z")

</div>

Ah,

listen 80;  
listen [::]:80 ipv6only=on;\*

\*rather than simply,

listen [::]:80;
