Page 1 of 1

Still cannot bind...

PostPosted: Mon May 02, 2011 6:39 pm
by el-lobo
I still have a problem with the serviio service:
Here is a part of my log:

2011-05-02 20:29:54,734 ERROR [DiscoverySSDPMessageListener] Cannot open multicast socket,will try again
java.net.BindException: Address already in use: Cannot bind
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(Unknown Source)
at java.net.DatagramSocket.bind(Unknown Source)
at java.net.MulticastSocket.<init>(Unknown Source)
at java.net.MulticastSocket.<init>(Unknown Source)
at org.serviio.util.MultiCastUtils.startMultiCastSocketForListening(MultiCastUtils.java:44)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:79)
at java.lang.Thread.run(Unknown Source)
2011-05-02 20:29:55,734 ERROR [DiscoverySSDPMessageListener] Cannot open multicast socket,will try again
java.net.BindException: Address already in use: Cannot bind
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(Unknown Source)
at java.net.DatagramSocket.bind(Unknown Source)
at java.net.MulticastSocket.<init>(Unknown Source)
at java.net.MulticastSocket.<init>(Unknown Source)
at org.serviio.util.MultiCastUtils.startMultiCastSocketForListening(MultiCastUtils.java:44)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:79)
at java.lang.Thread.run(Unknown Source)
2011-05-02 20:29:56,750 ERROR [DiscoverySSDPMessageListener] Cannot open multicast socket,will try again
java.net.BindException: Address already in use: Cannot bind
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.PlainDatagramSocketImpl.bind(Unknown Source)
at java.net.DatagramSocket.bind(Unknown Source)
at java.net.MulticastSocket.<init>(Unknown Source)
at java.net.MulticastSocket.<init>(Unknown Source)
at org.serviio.util.MultiCastUtils.startMultiCastSocketForListening(MultiCastUtils.java:44)
at org.serviio.upnp.discovery.DiscoverySSDPMessageListener.run(DiscoverySSDPMessageListener.java:79)
at java.lang.Thread.run(Unknown Source)

As you see, there is a new entry every second "cannot open multicast socket" and "adress already in use"
The log file is getting bigger and bigger every second, but serviio is working with my LE40B750 TV Set!
It is doing a good job, but the issue with the log file slows down my CPU and uses a much of disk space.
I dont know, what the error mean, thought, there is another thing using the same IP Adress, but every one has its own, fixed, IP Adress in my network.
Also checked the Firewall, but also everything is okay...
I have this problem since the first day I tried SERVIIO a couple of versions before and I already posted about the problem, but no one seems to have a solution.

Maybe some one can help me now?

Sorry for my english!

Regards from Germany!

Re: Still cannot bind...

PostPosted: Mon May 02, 2011 6:46 pm
by moltra
Can you post what else is running on your network. You might have somethig else that is acting as a DLNA Server at the same time and using the same settings.

One such example is Windows Media center, it can act like a DLNA server.

Re: Still cannot bind...

PostPosted: Mon May 02, 2011 6:54 pm
by Cerberus
the issue with the log file slows down my CPU and uses a much of disk space.


That isnt even possible the logging has NO effect of you cpu at all and with 6 full log files (max number there will ever be ) it will only total out at about 5mb for all 6 files.


now to your actual issue.

it seems something is blocking UDP 1900 port, or you have not entered the proper IP into Bound IP address field in the console.

Re: Still cannot bind...

PostPosted: Mon May 02, 2011 8:23 pm
by el-lobo
Thanks for your reply.
But I checked that all..
I have the UDP Port 1900 open in my router and there are no other devices running in my network.
I also checked the services in the management console under Windows XP and there is also nothing else running as a DLNA server (AFAIK!)
The serviio console did also found my SAMSUNG B series TV and a green light is on it, so everything seems to be okay.
But I still have that damn log entries.. every second a new entry.
Is there a tool available to check my network? I think something is blocking my UDP port 1900 but I dont know what.
Maybe I can scan it with something?

Thanks again!

Re: Still cannot bind...

PostPosted: Mon May 02, 2011 8:50 pm
by Cerberus
el-lobo wrote:Thanks for your reply.
But I checked that all..
I have the UDP Port 1900 open in my router and there are no other devices running in my network.
I also checked the services in the management console under Windows XP and there is also nothing else running as a DLNA server (AFAIK!)
The serviio console did also found my SAMSUNG B series TV and a green light is on it, so everything seems to be okay.
But I still have that damn log entries.. every second a new entry.
Is there a tool available to check my network? I think something is blocking my UDP port 1900 but I dont know what.
Maybe I can scan it with something?

Thanks again!


do you have UPNP enabled on your router ???

Re: Still cannot bind...

PostPosted: Mon May 02, 2011 10:12 pm
by zip
el-lobo wrote:I have the UDP Port 1900 open in my router and there are no other devices running in my network.

Router doesn't make any difference, this is a problem with a local service blocking the port.

try this:

  Code:
netstat -a -b -p UDP


and look for port 1900

Re: Still cannot bind...

PostPosted: Tue May 03, 2011 4:23 pm
by el-lobo
Okay, thanks again, this is comming after entering the netstat command:
I deleted my computername with +++ 8-)

Aktive Verbindungen

Proto Lokale Adresse Remoteadresse Status PID
UDP +++_notebook:isakmp *:* 1348
[lsass.exe]

UDP +++_notebook:4500 *:* 1348
[lsass.exe]

UDP +++_notebook:microsoft-ds *:* 4
[System]

UDP +++_notebook:1900 *:* 1040
c:\winxp\system32\WS2_32.dll
c:\winxp\system32\ssdpsrv.dll
C:\WINXP\system32\ADVAPI32.dll
C:\WINXP\system32\kernel32.dll
[svchost.exe]

UDP +++_notebook:ntp *:* 1800
c:\winxp\system32\WS2_32.dll
c:\winxp\system32\w32time.dll
ntdll.dll
C:\WINXP\system32\kernel32.dll
[svchost.exe]

UDP +++_notebook:1900 *:* 1040
c:\winxp\system32\WS2_32.dll
c:\winxp\system32\ssdpsrv.dll
C:\WINXP\system32\ADVAPI32.dll
C:\WINXP\system32\kernel32.dll
[svchost.exe]

UDP +++_notebook:netbios-ns *:* 4
[System]

UDP +++_notebook:ntp *:* 1800
c:\winxp\system32\WS2_32.dll
c:\winxp\system32\w32time.dll
ntdll.dll
-- unbekannte Komponente(n) --
[svchost.exe]

UDP +++_notebook:netbios-dgm *:* 4
[System]

hope, this helps?

Re: Still cannot bind...

PostPosted: Sat May 21, 2011 4:43 am
by sunchar
It seems that winsock 2 are using UDP 1900 and as UDP provides no guarantee of delivery this services still sending packets, same that are logged in serviio. Check if you need this service running or stop it temporarily and check again to see if log file stills growing.

Hope this helps.