title: Error running mvn package for jeromq: "Bind Cannot assign requested address: connect"
body: <p>I want to send and receive data from Matlab and MetaTrader 5 on Windows 10.
  According to <a href="https://de.mathworks.com/matlabcentral/answers/269061-how-do-i-integrate-zeromq-library-with-matlab-i-want-my-matlab-program-to-be-a-subscriber-of-zeromq" rel="nofollow noreferrer"><strong>this</strong> post</a>, JeroMQ is the easiest route to go:</p>
  
  <ul>
  <li>I cloned the repo from <a href="https://github.com/zeromq/jeromq" rel="nofollow noreferrer">https://github.com/zeromq/jeromq</a> </li>
  <li>I installed maven</li>
  <li>Then I went into the repository root and start building it
  using: mvn package, which produced the following error message:</li>
  </ul>
  
  <p><sub></sub></p>
  
  <pre><code> [ERROR] Failures:
   [ERROR] TestEvents.testEventConnectRetried:85 No event was received
   [ERROR] Errors:
   [ERROR] PollTest.testPollUdp:100 » Bind Cannot assign requested address: 
   connect
   [INFO]
   [ERROR] Tests run: 588, Failures: 1, Errors: 1, Skipped: 17
   [INFO]
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 04:48 min
   [INFO] Finished at: 2019-09-12T18:51:01+02:00
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project jeromq: There are test failures.    
  </code></pre>
  
  <p>I tried to fix this by setting the IP configuration for the localhost to 127.0.0.1 according to these posts:</p>
  
  <ul>
  <li><a href="https://help.mulesoft.com/s/article/What-does-java-net-BindException-Cannot-assign-requested-address-mean" rel="nofollow noreferrer">https://help.mulesoft.com/s/article/What-does-java-net-BindException-Cannot-assign-requested-address-mean</a></li>
  <li><a href="https://stackoverflow.com/questions/13759394/zmqerror-cannot-assign-requested-address">ZMQError: Cannot assign requested address</a></li>
  </ul>
  
  <p>which did not fix the problem (same error message).</p>
  
  <p>I think it is related to some IP settings, but I am new to socket communication. I have no experience in Java programming/debugging. Please help me to fix this, so the <code>.jar</code> file is built successfully and I can add it to my <code>javaclasspath</code> in Matlab.</p>
  
  <p><strong>Otherwise:</strong> Is there an (easy) alternative way to establish Matlab socket communication with other programs (e.g. via ZeroMQ)?</p>