<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Nxagentd binding problem]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">We use Netxms for monitoring mikrotik, synology devices and servers, and it works perfectly. We love it! <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /> But in this week i installed the agent to a Windows server 2012R2 x64 and a Windows 7 Pro x64 machine. In booth case the agent installed without errors, and run on background, but cannot accessible.</p>
<p dir="auto">"nxagentd -D 1" says:</p>
<p dir="auto"><em>....<br />
2018.06.19 11:20:29.040 Trying to bind on 0.0.0.0:4700<br />
2018.06.19 11:20:29.040 Unable to bind socket: Only one usage of each socket address (protocol/network address/port) is normally permitted.<br />
2018.06.19 11:20:29.040 Trying to bind on 127.0.0.1:28180<br />
2018.06.19 11:20:29.040 Trying to bind on [::]:4700<br />
2018.06.19 11:20:29.040 Unable to bind socket: Only one usage of each socket address (protocol/network address/port) is normally permitted.<br />
2018.06.19 11:20:29.040 Unable to bind socket: Only one usage of each socket address (protocol/network address/port) is normally permitted.<br />
2018.06.19 11:20:29.040 Session agent connector terminated (socket error)<br />
.....</em></p>
<p dir="auto">Windows system event log says:<br />
<em>Event ID: 9<br />
Event source: NetXMS Win32 Agent<br />
Error: "Unable to bind socket: Only one usage of each socket address (protocol/network address/port) is normally permitted."</em></p>
<p dir="auto">"Netstat -an" says:</p>
<p dir="auto"><em>Active Connections</em></p>
<p dir="auto">  <em>Proto  Local Address          Foreign Address        State<br />
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:2179           0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:2301           0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:2381           0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:4700           0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:5985           0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:47001          0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:49157          0.0.0.0:0              LISTENING<br />
  TCP    0.0.0.0:49158          0.0.0.0:0              LISTENING<br />
  TCP    10.10.0.1:139          0.0.0.0:0              LISTENING<br />
  TCP    10.10.0.1:3389         10.10.0.254:50669      ESTABLISHED<br />
  TCP    10.10.0.1:49161        178.255.154.14:5938    ESTABLISHED<br />
  TCP    127.0.0.1:5939         0.0.0.0:0              LISTENING<br />
  TCP    127.0.0.1:5939         127.0.0.1:49162        ESTABLISHED<br />
  TCP    127.0.0.1:9656         0.0.0.0:0              LISTENING<br />
  TCP    127.0.0.1:28180        0.0.0.0:0              LISTENING<br />
  TCP    127.0.0.1:49162        127.0.0.1:5939         ESTABLISHED<br />
  TCP    127.0.0.1:49164        127.0.0.1:49165        ESTABLISHED<br />
  TCP    127.0.0.1:49165        127.0.0.1:49164        ESTABLISHED<br />
  TCP    [::]:135               [::]:0                 LISTENING<br />
  TCP    [::]:445               [::]:0                 LISTENING<br />
  TCP    [::]:2179              [::]:0                 LISTENING<br />
  TCP    [::]:2301              [::]:0                 LISTENING<br />
  TCP    [::]:2381              [::]:0                 LISTENING<br />
  TCP    [::]:3389              [::]:0                 LISTENING<br />
  TCP    [::]:4700              [::]:0                 LISTENING<br />
  TCP    [::]:5985              [::]:0                 LISTENING<br />
  TCP    [::]:47001             [::]:0                 LISTENING<br />
  TCP    [::]:49152             [::]:0                 LISTENING<br />
  TCP    [::]:49153             [::]:0                 LISTENING<br />
  TCP    [::]:49154             [::]:0                 LISTENING<br />
  TCP    [::]:49155             [::]:0                 LISTENING<br />
  TCP    [::]:49157             [::]:0                 LISTENING<br />
  TCP    [::]:49158             [::]:0                 LISTENING<br />
  TCP    [fe80::a049:cfb7:f7c5:3418%15]:2179  [fe80::a049:cfb7:f7c5:3418%15]:49565  ESTABLISHED<br />
  TCP    [fe80::a049:cfb7:f7c5:3418%15]:49565  [fe80::a049:cfb7:f7c5:3418%15]:2179  ESTABLISHED<br />
  UDP    0.0.0.0:161            *:*<br />
  UDP    0.0.0.0:500            *:*<br />
  UDP    0.0.0.0:3389           *:*<br />
  UDP    0.0.0.0:4500           *:*<br />
  UDP    0.0.0.0:5355           *:*<br />
  UDP    0.0.0.0:50992          *:*<br />
  UDP    10.10.0.1:137          *:*<br />
  UDP    10.10.0.1:138          *:*<br />
  UDP    10.10.0.1:5353         *:*<br />
  UDP    [::]:161               *:*<br />
  UDP    [::]:500               *:*<br />
  UDP    [::]:3389              *:*<br />
  UDP    [::]:4500              *:*<br />
  UDP    [::]:5355              *:*<br />
  UDP    [::]:50993             *:*<br />
  UDP    [::1]:5353             *:*</em></p>
<p dir="auto">We tried agent version 2.23 and 2.26 but same result. Booth machine clean installed, no other service or software. I have no idea. Maybe you have a solution. <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Thank you advance and have a nice day.  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/topic/5618/nxagentd-binding-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:58:49 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5618.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jun 2018 09:34:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nxagentd binding problem on Thu, 21 Jun 2018 08:47:10 GMT]]></title><description><![CDATA[<p dir="auto">Problem solved. Solution and background: Agent has local lan IP address, and was behind a mikrotik router. I dst-nat-ed the TCP port 4700. In agent config file i set only the public IP address of server for "masterservers". When i run the agent with -D9 (debug mode), i saw the incoming connection rejected from "mikrotik's lan IP address"!</p>
<p dir="auto">It is correct, because the agent saw the incoming connection come from his gateway (Mikrotik router) not from the public IP address of the server. So, i added the Mikrotik's lan address to Masterservers (in the agent's config file), and restarted the agent. And woila! Works perfectly!</p>
<p dir="auto">So guys, i would like to <strong>big-big thank you</strong> for your help!!!  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>https://forum.netxms.org/post/24468</link><guid isPermaLink="true">https://forum.netxms.org/post/24468</guid><dc:creator><![CDATA[IT-Reszleg]]></dc:creator><pubDate>Thu, 21 Jun 2018 08:47:10 GMT</pubDate></item><item><title><![CDATA[Reply to Nxagentd binding problem on Thu, 21 Jun 2018 07:56:17 GMT]]></title><description><![CDATA[<p dir="auto">Then don't use -r option, just run agent as a service. Make sure server can connect on port 4700 (agent installer should add firewall exception). You can use nxget on NetXMS server to test connection. If it returns error 408 (timeout), then it's likely firewall issue. If it is error 500 (or other 5xx) then most likely source address of incoming connection is not listed in MasterServers.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24465</link><guid isPermaLink="true">https://forum.netxms.org/post/24465</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 21 Jun 2018 07:56:17 GMT</pubDate></item><item><title><![CDATA[Reply to Nxagentd binding problem on Wed, 20 Jun 2018 16:59:48 GMT]]></title><description><![CDATA[<p dir="auto">Yes, i want the "server connect to agent" scenario. Tomorrow i will deal with it in whole day, and i will feed back. Thank you guys!!!:)</p>
]]></description><link>https://forum.netxms.org/post/24458</link><guid isPermaLink="true">https://forum.netxms.org/post/24458</guid><dc:creator><![CDATA[IT-Reszleg]]></dc:creator><pubDate>Wed, 20 Jun 2018 16:59:48 GMT</pubDate></item><item><title><![CDATA[Reply to Nxagentd binding problem on Wed, 20 Jun 2018 09:17:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">do you want server to connect to agent, or vise versa? Try to make agent running without registration option. If connection from your NetXMS server is NAT'ed, make sure that you have listed correct address in MasterServers (it should be address that agent sees). You can set logging to file and run agent with debug level 6 or higher - then you'll see if there are any incoming connections and if they are rejected.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24450</link><guid isPermaLink="true">https://forum.netxms.org/post/24450</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 20 Jun 2018 09:17:01 GMT</pubDate></item><item><title><![CDATA[Reply to Nxagentd binding problem on Tue, 19 Jun 2018 22:04:13 GMT]]></title><description><![CDATA[<p dir="auto">If you telnet to the public IP on port 4700 from your NetXMS server, does it connect or time out?<br />
If it connects, check your agent configuration file and node setup in NetXMS. The agent might simply not be configured to allow the server to connect.<br />
If it doesn't connect, there's some firewall in the way blocking the connection (could be the Windows firewall).</p>
]]></description><link>https://forum.netxms.org/post/24449</link><guid isPermaLink="true">https://forum.netxms.org/post/24449</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Tue, 19 Jun 2018 22:04:13 GMT</pubDate></item><item><title><![CDATA[Reply to Nxagentd binding problem on Tue, 19 Jun 2018 17:37:05 GMT]]></title><description><![CDATA[<p dir="auto">I checked, bindig is ok (i was stupid  :)), but the communication between server and agent is not working. The agent is behind a Mikrotik router, the port 4700 is dst-nat-ed to this machine (and rdp port also, and that is worked). If i try to poll agent, then nothing happened. If i try register manually agent to server, then:</p>
<p dir="auto"><em>c:\NetXMS\bin&gt;nxagentd.exe -r ***.***.***.***<br />
2018.06.19 19:15:09.276 Core agent version 2.2.6<br />
2018.06.19 19:15:09.276 Additional configs was loaded from C:\NetXMS\etc\nxagentd.conf.d<br />
2018.06.19 19:15:09.276 Debug level set to 0<br />
2018.06.19 19:15:09.292 Data directory: C:\Users\admin\AppData\Local\nxagentd<br />
2018.06.19 19:15:09.292 File store: C:\NetXMS\var<br />
2018.06.19 19:15:09.308 DB Library: Database driver "sqlite.ddr" loaded and initialized successfully<br />
2018.06.19 19:15:09.308 Agent ID is 30fe9b11-3e3f-f14c-818c-0d447229976f<br />
2018.06.19 19:15:09.308 Local host name is "WIndows7-VM"<br />
2018.06.19 19:15:09.308 Using system name "WIndows7-VM"<br />
2018.06.19 19:15:09.323 Subagent "WinNT" (WINNT.NSM) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:09.323 Subagent "ECS" (ecs.nsm) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:09.323 Subagent "FILEMGR" (filemgr.nsm) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:09.323 Subagent "PING" (ping.nsm) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:09.323 Subagent "LOGWATCH" (logwatch.nsm) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:09.323 Subagent "PORTCHECK" (portcheck.nsm) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:11.745 Subagent "WinPerf" (winperf.nsm) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:11.745 Subagent "WMI" (wmi.nsm) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:11.745 Subagent "UPS" (ups.nsm) loaded successfully (version 2.2.6)<br />
2018.06.19 19:15:12.745 Listening on socket 0.0.0.0:4700<br />
2018.06.19 19:15:12.745 Listening on socket [::]:4700<br />
2018.06.19 19:15:33.776 Registration on management server failed: Unable to connect to management server<br />
2018.06.19 19:15:34.776 NetXMS Agent started<br />
Agent running. Press ESC to shutdown.</em></p>
<p dir="auto">The management server is on remote place, and have fix public IP address. All of my other agents can communicate with this management server remotely, only this can't.</p>
<p dir="auto">I have no idea, how to test the communication betwen server and agent. It seems the NAT is ok, and i can ping the management server from agent machine.</p>
]]></description><link>https://forum.netxms.org/post/24448</link><guid isPermaLink="true">https://forum.netxms.org/post/24448</guid><dc:creator><![CDATA[IT-Reszleg]]></dc:creator><pubDate>Tue, 19 Jun 2018 17:37:05 GMT</pubDate></item><item><title><![CDATA[Reply to Nxagentd binding problem on Tue, 19 Jun 2018 10:33:48 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the quick reply, i will check these!  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://forum.netxms.org/post/24446</link><guid isPermaLink="true">https://forum.netxms.org/post/24446</guid><dc:creator><![CDATA[IT-Reszleg]]></dc:creator><pubDate>Tue, 19 Jun 2018 10:33:48 GMT</pubDate></item><item><title><![CDATA[Reply to Nxagentd binding problem on Tue, 19 Jun 2018 09:51:14 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">2018.06.19 11:20:29.040 Trying to bind on 0.0.0.0:4700<br />
2018.06.19 11:20:29.040 Unable to bind socket: Only one usage of each socket address (protocol/network address/port) is normally permitted.<br />
2018.06.19 11:20:29.040 Trying to bind on 127.0.0.1:28180<br />
2018.06.19 11:20:29.040 Trying to bind on [::]:4700<br />
2018.06.19 11:20:29.040 Unable to bind socket: Only one usage of each socket address (protocol/network address/port) is normally permitted.<br />
2018.06.19 11:20:29.040 Unable to bind socket: Only one usage of each socket address (protocol/network address/port) is normally permitted.<br />
2018.06.19 11:20:29.040 Session agent connector terminated (socket error)</p>
</blockquote>
<p dir="auto">Because service Netxms Agent already running.</p>
<blockquote>
<p dir="auto">TCP    0.0.0.0:4700           0.0.0.0:0              LISTENING</p>
</blockquote>
<p dir="auto">Check firewall rules and MasterServers parameter in config file nxagentd.conf<br />
Use nmap to check port</p>
]]></description><link>https://forum.netxms.org/post/24445</link><guid isPermaLink="true">https://forum.netxms.org/post/24445</guid><dc:creator><![CDATA[voron]]></dc:creator><pubDate>Tue, 19 Jun 2018 09:51:14 GMT</pubDate></item></channel></rss>