# Firewall blocking mqtt

**URL:** https://discourse.nodered.org/t/firewall-blocking-mqtt/20480
**Category:** General
**Created:** [17 January 2020 08:26 UTC](https://discourse.nodered.org/t/firewall-blocking-mqtt/20480 "2020-01-17T08:26:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![saeed1](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@saeed1](https://discourse.nodered.org/u/saeed1)
#### Post date: [17 January 2020 08:26 UTC](https://discourse.nodered.org/t/firewall-blocking-mqtt/20480/1 "2020-01-17T08:26:03Z")

</div>

1. Node red is running on 1880
2. Mosquitto server is on 1883
3. InfluxDB is running on 8086
4. Grafana is running on 8088

They all are running on same machine. I have removed firewall from all these ports but its not working. If i remove firewall completely , it works. But , i think turning off the firewall is not a good idea.

I am using mqtt protocol, Please help

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [17 January 2020 08:58 UTC](https://discourse.nodered.org/t/firewall-blocking-mqtt/20480/2 "2020-01-17T08:58:11Z")

</div>

What Operating System?

---

<div class="post-metadata">

### Author: ![saeed1](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@saeed1](https://discourse.nodered.org/u/saeed1)
#### Post date: [17 January 2020 08:59 UTC](https://discourse.nodered.org/t/firewall-blocking-mqtt/20480/3 "2020-01-17T08:59:39Z")

</div>

Windows 8.1 pro on my laptop

---

<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: [17 January 2020 17:18 UTC](https://discourse.nodered.org/t/firewall-blocking-mqtt/20480/4 "2020-01-17T17:18:41Z")

</div>

I suspect that you are using the device's IP address instead of the `localhost` address of `127.0.0.1`.

When you use the device's IP address, the traffic has to go through the network card and is intercepted by the Windows Firewall. If you keep everything on `127.0.0.1` it won't go via the card. It will be faster as well.

You can, in fact persuade the Windows firewall to let through traffic on various ports but I absolutely wouldn't recommend it on a device running such an out-of-date operating system.

W8.1 GA: October 17, 2013  
W8.1 End of mainstream support: January 9, 2018 (You may have extended support via your organisation)
