# TCPServer Error while I'm using WEBRick

**URL:** <https://www.ruby-forum.com/t/tcpserver-error-while-im-using-webrick/174038>\
**Category:** Ruby\
**Created:** [August 19, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/tcpserver-error-while-im-using-webrick/174038 "2009-08-19T21:18:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![polunochnik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Post date:** [August 19, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/tcpserver-error-while-im-using-webrick/174038/1 "2009-08-19T21:18:53Z")

</div>

Hi.

When I’m starting a ruby script with a WEBRick server included I’m  
receiving TCPServer Error.

Here is the output:

[2009-08-19 22:57:00] INFO WEBrick 1.3.1  
[2009-08-19 22:57:00] INFO ruby 1.9.1 (2009-07-16) [i686-linux]  
[2009-08-19 22:57:05] WARN TCPServer Error: Address already in use -  
bind(2)  
[2009-08-19 22:57:05] INFO WEBrick::HTTPServer#start: pid=9187  
port=2000

My application is working correct without any complaints but I concern  
about this warning. What is the reason? How can I fix it?

NB: There aren’t any applications works on the port 2000 and the warning  
is holding when I’m using ports 2000, 20 000 or any other.

Thanks.

---

<div class="post-metadata">

**Author:** ![polunochnik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Post date:** [August 20, 2009, 10:22am UTC](https://www.ruby-forum.com/t/tcpserver-error-while-im-using-webrick/174038/2 "2009-08-20T10:22:48Z")

</div>

P. A. wrote:

> When I’m starting a ruby script with a WEBRick server included I’m  
> receiving TCPServer Error.  
> …  
> [2009-08-19 22:57:05] WARN TCPServer Error: Address already in use -  
> bind(2)

It happens, I reported it ages ago. It doesn’t cause any problems, so  
unless you want to dig down deep to find the underlying cause, you can  
ignore it.
