RestComm/jdiameter

Caused by: java.net.SocketException: Network is unreachable: connect

Opened this issue · 0 comments

Hello, i write this email to inform a problem when i tried to connect diameter client of the example setion with an enxternal diameter server the app throws:
Caused by: java.net.SocketException: Network is unreachable: connect
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:482)
at java.base/sun.nio.ch.Net.connect(Net.java:474)
at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:694)
at org.jdiameter.client.impl.transport.tcp.TCPTransportClient.initialize(TCPTransportClient.java:134)
at org.jdiameter.client.impl.transport.tcp.TCPClientConnection.connect(TCPClientConnection.java:130)

I tried the remote server with a seagull local client and all works, also i sent ping request to the remote server IP from my network and its working, could you please help me with this problem.
This are my connection settings:

<?xml version="1.0"?>
<Configuration xmlns="http://www.jdiameter.org/jdiameter-server">

  <LocalPeer>
    <URI value="aaa://127.0.0.1:1812" />

    <IPAddresses>
      <IPAddress value="127.0.0.1" />
    </IPAddresses>
    <Realm value="exchange.example.org" />
    <VendorID value="0" />
    <ProductName value="jDiameter" />
    <FirmwareRevision value="1" />
    <OverloadMonitor>
      <Entry index="1" lowThreshold="0.5" highThreshold="0.6">
        <ApplicationID>
          <VendorId value="0" />
          <AuthApplId value="333333" />
          <AcctApplId value="0" />
        </ApplicationID>
      </Entry>
    </OverloadMonitor>
  </LocalPeer>

  <Parameters>
    <AcceptUndefinedPeer value="false" />
    <DuplicateProtection value="true" />
    <DuplicateTimer value="240000" />
    <UseUriAsFqdn value="false" />
    <QueueSize value="10000" />
    <MessageTimeOut value="60000" />
    <StopTimeOut value="10000" />
    <CeaTimeOut value="10000" />
    <IacTimeOut value="30000" />
    <DwaTimeOut value="10000" />
    <DpaTimeOut value="5000" />
    <RecTimeOut value="10000" />
    <Concurrent>
      <Entity name="ThreadGroup" size="64" />
      <Entity name="ProcessingMessageTimer" size="1" />
      <Entity name="DuplicationMessageTimer" size="1" />
      <Entity name="RedirectMessageTimer" size="1" />
      <Entity name="PeerOverloadTimer" size="1" />
      <Entity name="ConnectionTimer" size="1" />
      <Entity name="StatisticTimer" size="1" />
    </Concurrent>

  </Parameters>

  <Network>
    <Peers>
      <Peer name="aaa://192.165.36.60:3869" attempt_connect="true" rating="1" />
    </Peers>
    <Realms>
      <Realm name="exchange.example.org" peers="192.165.36.60"
        local_action="LOCAL" dynamic="false" exp_time="1">
        <ApplicationID>
          <VendorId value="0" />
          <AuthApplId value="333333" />
          <AcctApplId value="0" />
        </ApplicationID>
      </Realm>
    </Realms>
  </Network>

  <Extensions />

</Configuration>