1834156 Members
2262 Online
110064 Solutions
New Discussion

Muticast problem

 
Peter Michalicka
Occasional Contributor

Muticast problem

There is a example program on HP-UX 11.23:

/usr/lib/demos/networking/socket/serv.mcast.c

If I try to start the server twice the following message occurs:

Adress allready is use
unable to bind address

Is there a configuration necessary to allow multicasting at a given address (e.g. 224.168.0.255)
4 REPLIES 4
RAC_1
Honored Contributor

Re: Muticast problem

Looks like the port you are trying to bound, is in use.
netstat -an|grep "port_that_you_use_in_program"
This will give which process is using it. Unless it is free you will not be able to bind to it.

Anil
There is no substitute to HARDWORK
Ralph Grothe
Honored Contributor

Re: Muticast problem

You probably could try to modify your code to make use of the syscall setsockopt() and set SO_REUSEADRR
Usually it takes a time until a formerly bound to port is released.
I know that in the Perl IO::Socket module the contructor takes this parameter to accelerate reavailability
Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: Muticast problem

You probably could try to modify your code to make use of the syscall setsockopt() and set SO_REUSEADRR
Usually it takes a time until a formerly bound to port is released.
I know that in the Perl IO::Socket module the constructor takes this parameter to accelerate reavailability
Madness, thy name is system administration
Ralph Grothe
Honored Contributor

Re: Muticast problem

Sorry for the double post.
Must have hit the submit button twice.
Madness, thy name is system administration