Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joce455 opened this issue Jan 24, 2020 · 0 comments
Open

Comments

@joce455
Copy link

joce455 commented Jan 24, 2020

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant