# IrTrans binding - Connection refused

**URL:** <https://community.openhab.org/t/irtrans-binding-connection-refused/28200>\
**Category:** Beginners\
**Tags:** tcp, irtrans, binding\
**Created:** [May 11, 2017, 1:49pm UTC](https://community.openhab.org/t/irtrans-binding-connection-refused/28200 "2017-05-11T13:49:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dries](https://community.openhab.org/user_avatar/community.openhab.org/dries/32/8797_2.png) [@Dries](https://community.openhab.org/u/Dries)\
**Post date:** [May 11, 2017, 1:49pm UTC](https://community.openhab.org/t/irtrans-binding-connection-refused/28200/1 "2017-05-11T13:49:25Z")

</div>

Hi,  
I’m stuck in setting up the IrTrans binding.  
I would like to control my Epson projector using IrTrans.  
I believe IRTrans is set up correctly. I can power on/off, play/pause/… using these links:

```auto
http://192.168.3.14/send.htm?remote=Epson&command=Power
http://192.168.3.14/send.htm?remote=Epson&command=Pause
http://192.168.3.14/send.htm?remote=Epson&command=Play
http://192.168.3.14/send.htm?remote=Epson&command=Stop

```

I’ve installed the IrTrans-binding (OpenHAB 2.1).  
I have created the following items:

```csv
Switch IRtrans_EV_Ontspanningsruimte_Projector "Epson Projector Aan/Uit" <projector_benq> (gEV_Ontspanningsruimte, gIRtrans) { irtrans="[ON:192.168.3.14:3000:*:Epson:Power]" }
Switch IRtrans_EV_Ontspanningsruimte_Projector_PlayPause "Epson Projector Play/Pause" <projector_benq> (gEV_Ontspanningsruimte, gIRtrans) { irtrans="[ON:192.168.3.14:3000:*:Epson:Pause]" }

```

As soon as I save the .items file, my openhab.log starts generating the following entries:

```auto
2017-05-11 15:42:31.176 [INFO] [ing.tcp.AbstractSocketChannelBinding] - Attempting to reconnect the channel for /192.168.3.14:3000
2017-05-11 15:42:31.207 [WARN] [ing.tcp.AbstractSocketChannelBinding] - The channel java.nio.channels.SocketChannel[closed] has encountered an unknown IO Exception: Connection refused
2017-05-11 15:42:35.207 [INFO] [ing.tcp.AbstractSocketChannelBinding] - Attempting to reconnect the channel for /192.168.3.14:3000

```

I’m not sure where to go from here or how to troubleshoot it…

Any help would be great!

---

<div class="post-metadata">

**Author:** ![Dries](https://community.openhab.org/user_avatar/community.openhab.org/dries/32/8797_2.png) [@Dries](https://community.openhab.org/u/Dries)\
**Post date:** [May 11, 2017, 9:31pm UTC](https://community.openhab.org/t/irtrans-binding-connection-refused/28200/2 "2017-05-11T21:31:48Z")

</div>

Problem solved!

The default port mentioned in the wiki (3000) did not seem to be the correct one. I changed it to 21000 and now it works.

The strange thing is, in my IRtrans device I can not specify any other port. So my device came with 21000 out-of-the-box.

```csv
/* IRtrans Fitnessruimte */

Switch IRtrans_EV_Ontspanningsruimte_Projector "Epson Projector Aan/Uit" <projector_benq> (gEV_Ontspanningsruimte, gIRtrans) { irtrans="[ON:192.168.3.14:21000:*:Epson:Power]" }
Switch IRtrans_EV_Ontspanningsruimte_Projector_PlayPause "Epson Projector Play/Pause" <projector_benq> (gEV_Ontspanningsruimte, gIRtrans) { irtrans="[ON:192.168.3.14:21000:*:Epson:Pause]" }

```
