# TCP Request VLC issue

**URL:** <https://discourse.nodered.org/t/tcp-request-vlc-issue/22895>\
**Category:** General\
**Created:** [9 March 2020 21:49 UTC](https://discourse.nodered.org/t/tcp-request-vlc-issue/22895 "2020-03-09T21:49:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lopikamper](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@lopikamper](https://discourse.nodered.org/u/lopikamper)\
**Post date:** [9 March 2020 21:49 UTC](https://discourse.nodered.org/t/tcp-request-vlc-issue/22895/1 "2020-03-09T21:49:06Z")

</div>

Hi, I am trying to control VLC over remote control TCP or lua TCP with TCP nodes in node-red.  
I have succesfully created a connection between node-red TCP Request (TCP out) nodes and the listener on VLC side.

The problem is when I inject the message command in node-red, it does not appear in RC console in VLC, unless I hit the deploy button in node-red. Then the command appears there with no errors and succesfully do what it has to do.

Any of the sides report no errors whatsoever. I am kinda new to this, but I cannot figure it on my own, even with looking around the forums.

Thanks for help. !

 ![Screenshot_1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/5/f5ec9a410d4acb9d984fc63cee03ef8806c8f878.png)  
[Screenshot\_2|499x441](https://discourse.nodered.org/uploads/short-url/gAAKY7MjzqoV4rFF8XJSTBAs71Y.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 March 2020 22:29 UTC](https://discourse.nodered.org/t/tcp-request-vlc-issue/22895/2 "2020-03-09T22:29:36Z")

</div>

If you are sending commands and expecting a return (which I think you are) - then maybe try the tcp-request node - It may be more suitable. But yes once you change/edit your flow you must deploy it first before it will function.

---

<div class="post-metadata">

**Author:** ![lopikamper](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@lopikamper](https://discourse.nodered.org/u/lopikamper)\
**Post date:** [9 March 2020 23:00 UTC](https://discourse.nodered.org/t/tcp-request-vlc-issue/22895/3 "2020-03-09T23:00:41Z")

</div>

Yes, I expect some return, so thanks for this, I have also tried it with request node. But I think you misunderstood my problem. I have established the connection between VLC and node-red via TCP (localhost:10001), that's OK. The problem comes when I try to send a command. I inject the message ('pause') and send it to one of the TCP nodes, but in VLC no message is recieved on port 10001. But when I make a little change (such as moving debug node a little) and then click deploy in node-red, the message from node-red ('pause') suprisingly appears in VLC remote control console and is performed with no errors.

So my deducation is that connection is working fine, but node-red only sends messages via TCP when I click deploy, which is strange.

It seems like I have some fault in options of tcp nodes, because when I inject my message 3 times and then do the same thing with deploying, it sends a buffer with string 'pausepausepause'.

I hope I managed to explain my problem more.

I have been using node-red for about 1,5 years, but i am new in the communication via TCP protocol.

---

<div class="post-metadata">

**Author:** ![lopikamper](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@lopikamper](https://discourse.nodered.org/u/lopikamper)\
**Post date:** [9 March 2020 23:15 UTC](https://discourse.nodered.org/t/tcp-request-vlc-issue/22895/4 "2020-03-09T23:15:02Z")

</div>

I have solved it on my own. Problem really was in the settings of my TCP node. After each message I want to pass through the connection should close. There is a option in node TCP out to set it on true. That is why everytime when I deployed the flow, the message was sent. Because the connection closed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 March 2020 23:15 UTC](https://discourse.nodered.org/t/tcp-request-vlc-issue/22895/5 "2020-03-23T23:15:07Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
