Network problem under linux

Help
2008-08-11
2013-05-02
  • René Brenner
    René Brenner
    2008-08-11

    Hello,
    using cyberlink 1.8.0 from cyberdomo under linux results in a java exception as listed below. I also included the code which I am using to create a upnp device. I suspect my linux NIC is misconfigured because the code is working fine under windows. Does anyone have a hint on my issue?

    Java code:

          try {
             upnpDev = new Device(descriptionFileName);
             upnpDev.setHTTPPort(httpPort);
             upnpDev.setLeaseTime(100);
             upnpDev.start(); <- exception occurs        
          }

    Java exception (java version "1.5.0_06")

    CyberDomo warning : Network is unreachable
    java.io.IOException : Network is unreachable
       at java.net.PlanDatagramSocketImpl.send(Native Method)
       at java.net.DatagramSocket.send(DatagramSocket.java:612)
       at org.cybergarage.upnp.ssdp.HTTPMUSocket.send(HTTPMUSocket.java:197)  
       at org.cybergarage.upnp.ssdp.HTTPMUSocket.send(HTTPMUSocket.java:223)
       ...
       at java.lang.Thread.run(Thread.java:595)

    # ifconfig -a
      
    eth_lo0   Protokoll:Ethernet  Hardware Adresse 00:C0:3A:6B:03:10 
              inet Adresse:192.168.0.5  Bcast:192.255.255.255  Maske:255.0.0.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Sendewarteschlangenlänge:1000
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

    eth_lo1   Protokoll:Ethernet  Hardware Adresse 00:C0:3A:6A:03:10 
              BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Sendewarteschlangenlänge:1000
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
              Basisadresse:0xcf00 Speicher:fdce0000-fdd00000

    lo        Protokoll:Lokale Schleife 
              inet Adresse:127.0.0.1  Maske:255.0.0.0
              inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:22 errors:0 dropped:0 overruns:0 frame:0
              TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Sendewarteschlangenlänge:0
              RX bytes:1648 (1.6 Kb)  TX bytes:1648 (1.6 Kb)

    sit0      Protokoll:IPv6-nach-IPv4 
              NOARP  MTU:1480  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 Sendewarteschlangenlänge:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

     
    • René Brenner
      René Brenner
      2008-08-11

      Hi again,

      I solved the problem myself by adding a multicast route netmask from 239.0.0.0 to 255.0.0.0