# Port connection and receiving a message

**URL:** https://discourse.nodered.org/t/port-connection-and-receiving-a-message/4447
**Category:** General
**Created:** [31 October 2018 09:34 UTC](https://discourse.nodered.org/t/port-connection-and-receiving-a-message/4447 "2018-10-31T09:34:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Gina](https://avatars.discourse-cdn.com/v4/letter/g/58956e/32.png) [@Gina](https://discourse.nodered.org/u/Gina)
#### Post date: [31 October 2018 09:34 UTC](https://discourse.nodered.org/t/port-connection-and-receiving-a-message/4447/1 "2018-10-31T09:34:27Z")

</div>

Hi,

I am new to Node-red so it'll be great if someone can advice on this.

I am connected to a device and i need to display the message on the sidebar after establishing a connection to the port of the device.

A simple flow is shown below. How can I proceed from there?

[{"id":"c97454e4.a67ca8","type":"tcp request","z":"e7892a8c.f647f8","server":"localhost","port":"9500","out":"time","splitc":"0","name":"","x":450,"y":120,"wires":[["1eae48a6.fa5c67"]]}]

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [31 October 2018 09:42 UTC](https://discourse.nodered.org/t/port-connection-and-receiving-a-message/4447/2 "2018-10-31T09:42:48Z")

</div>

Take a look at the debug node

There are also some great tutorials online that will introduce you to the fundamentals of Node-RED, such as [http://noderedguide.com](http://noderedguide.com)

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [1 November 2018 22:02 UTC](https://discourse.nodered.org/t/port-connection-and-receiving-a-message/4447/3 "2018-11-01T22:02:01Z")

</div>

> [@Gina](#):
>
> simple flow is shown below

Please also wrap your flows in back-ticks or triple back-ticks if you want people to be able to copy them. Thanks.
