# Rails server on IPv6

**URL:** <https://www.ruby-forum.com/t/rails-server-on-ipv6/229738>\
**Category:** Rails\
**Created:** [February 13, 2013, 4:19pm UTC](https://www.ruby-forum.com/t/rails-server-on-ipv6/229738 "2013-02-13T16:19:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![test](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f9ae1b/32.png) [@test](https://www.ruby-forum.com/u/test)\
**Post date:** [February 13, 2013, 4:19pm UTC](https://www.ruby-forum.com/t/rails-server-on-ipv6/229738/1 "2013-02-13T16:19:31Z")

</div>

Hi,  
I am new to Ruby on Rails. I installed 3.0.18 on Cent OS 6 for testing.  
I used following command to create a demo application  
#rails new demo

Then goto this demo dir and use (without changing anything inside the  
demo dir)  
#rails server -p 80 -b ::  
to make it listen on IPv4 and IPv6 both.

After that it works fine when using IPv4 address to access it. However,  
when I using IPv6 address to send out POST request, it keeps giving me  
“ERROR bad URI”.

Is there anything I can do to fix it?

Thanks a lot.
