# I need connecting a device TCP to Ignition

**URL:** <https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964>\
**Category:** Ignition\
**Created:** [May 24, 2011, 4:32pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964 "2011-05-24T16:32:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [May 24, 2011, 4:32pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/1 "2011-05-24T16:32:41Z")

</div>

Hi,  
.  
I am setting up a TCP device and make the settings in the OPC-UA/Devices the device appears as Disconnected.

In the attached image we’ll show you how this network.

I need to activate the license? For so far I’m using the Trial of 2 hrs.

Device information see it through Hyperterminal.

I need to do to get communication with my Device

I await your quick response

thanks  
[RED.pdf](https://us1.discourse-cdn.com/inductiveautomation/original/1X/387b1b0a74ecdb19ae859c494cfd97751c14c388.pdf) (23.8 KB)

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [May 24, 2011, 5:17pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/2 "2011-05-24T17:17:06Z")

</div>

Hi

When I try to connect by TCP I get an error.

24/05/11 12:14:27 PM TCPDriver-aries - Error starting listener: TCPListener (192.168.1.95:3001)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 24, 2011, 6:04pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/3 "2011-05-24T18:04:25Z")

</div>

It looks like the driver can’t connect for some reason to 192.168.1.95:3001. If you are running a current version of Ignition there should be a stack trace that also gets printed out with that error message. Can you find the stack trace or attach your entire log file for us to look at?

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [May 24, 2011, 6:26pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/4 "2011-05-24T18:26:51Z")

</div>

Hi, Kevin

this is the list of errors that I get.

Greetings.  
[error.doc](https://us1.discourse-cdn.com/inductiveautomation/original/1X/9264085b3b6ee53a1bb8947d2367318a9f8ed64d.doc) (379 KB)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 24, 2011, 8:09pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/5 "2011-05-24T20:09:19Z")

</div>

I need you to post or email the wrapper.log file. It can be found in the Ignition install directory, usually something like “C:\Program Files\Inductive Automation\Ignition”.

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [May 24, 2011, 9:11pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/6 "2011-05-24T21:11:45Z")

</div>

ok

My e-mail is [e.arteaga@lidercontrol.com.mx](mailto:e.arteaga@lidercontrol.com.mx)

thanks

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [May 24, 2011, 9:57pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/7 "2011-05-24T21:57:59Z")

</div>

Hi Kevin.

I send the document you request

Thanks  
[wrapper.log.zip](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e60793dfe7a310045cbf379096adf0e9b520c12f.zip) (402 KB)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 24, 2011, 11:04pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/8 "2011-05-24T23:04:18Z")

</div>

It looks like the error is just a simple networking error:

```auto
INFO | jvm 1 | 2011/05/24 11:27:37 | ERROR [TCPDriver-Prueba1] [11:27:37,695]: Error starting listener: TCPListener (192.168.1.95:3001)
INFO | jvm 1 | 2011/05/24 11:27:37 | java.net.ConnectException: Connection refused: connect
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.PlainSocketImpl.socketConnect(Native Method)
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.PlainSocketImpl.doConnect(Unknown Source)
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.PlainSocketImpl.connect(Unknown Source)
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.SocksSocketImpl.connect(Unknown Source)
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.Socket.connect(Unknown Source)
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.Socket.connect(Unknown Source)
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.Socket.<init>(Unknown Source)
INFO | jvm 1 | 2011/05/24 11:27:37 | at java.net.Socket.<init>(Unknown Source)
```

Either you have the IP address and/or port wrong or the device is refusing the connection. Have you tried pinging the device from the server that the Ignition gateway is running on and making sure it’s reachable?

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [May 25, 2011, 1:17pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/9 "2011-05-25T13:17:19Z")

</div>

Ok

I will check the network

Thanks

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [May 25, 2011, 6:28pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/10 "2011-05-25T18:28:42Z")

</div>

Hi kevin.

I have a question

There any special port to communicate over TCP?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 26, 2011, 3:10pm UTC](https://forum.inductiveautomation.com/t/i-need-connecting-a-device-tcp-to-ignition/2964/11 "2011-05-26T15:10:06Z")

</div>

The only port you need to know is the one for the device you are trying to communicate to.

Just to make sure:

The way the TCP driver works is it makes a connection from the gateway out to a device with the specified IP address listening on the specified port. It then listens for that device to send data.
