# Logstash not listening remote tcp port on Azure windows VM

**URL:** <https://discuss.elastic.co/t/logstash-not-listening-remote-tcp-port-on-azure-windows-vm/88062>\
**Category:** Logstash\
**Created:** [June 2, 2017, 10:17am UTC](https://discuss.elastic.co/t/logstash-not-listening-remote-tcp-port-on-azure-windows-vm/88062 "2017-06-02T10:17:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravindra\_Barapatre](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Ravindra\_Barapatre](https://discuss.elastic.co/u/Ravindra_Barapatre)\
**Post date:** [June 2, 2017, 10:17am UTC](https://discuss.elastic.co/t/logstash-not-listening-remote-tcp-port-on-azure-windows-vm/88062/1 "2017-06-02T10:17:33Z")

</div>

I have deployed following components on Azure VM.

1. logstash 5.4.0
2. ElasticSearch 5.4.0
3. kibana 5.4.0

It is running locally perfectly for TCP input plugin on VM.

```
input {
  tcp {
	 port => 52811
 host => "0.0.0.0"
  }
}
output {
  elasticsearch { hosts => ["127.0.0.1:9200"] }
  stdout { codec => rubydebug }
}    

```

but when I am trying call logstash from my local machine using NLog with config.

```
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <targets>
    <target name="network" xsi:type="Network" address="tcp://{hostname}:52811" layout="${level} ${logger} ${message}${newline}" />
  </targets>
  <rules>
     <logger name="*" minlevel="Trace" writeTo="network" />
  </rules>
</nlog>

```

I have set firewall setting for tcp port 52811 on VM.

It is not working..

Please help me..

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 30, 2017, 10:17am UTC](https://discuss.elastic.co/t/logstash-not-listening-remote-tcp-port-on-azure-windows-vm/88062/2 "2017-06-30T10:17:45Z")

</div>

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