1820880 Members
3511 Online
109628 Solutions
New Discussion юеВ

ERR#227 EADDRNOTAVAIL

 
Schelstraete Bart_1
Frequent Advisor

ERR#227 EADDRNOTAVAIL

Hi,

A program is failing. After tracing I found out that it failed due to the following issue:

--
getsockopt(9, 0, 0x2, 0x7fffe6ec, 0x7fffe6e8) ............ = 0
setsockopt(9, 0, 0x5, 0x7fffe6f0, 8) ..................... ERR#227 EADDRNOTAVAIL
--
Which means:
'Bad interface address for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.'
But I don't see what the problem is.
Can somebody help me?



2 REPLIES 2
Peter Godron
Honored Contributor

Re: ERR#227 EADDRNOTAVAIL

Hi,
have you looked at:
http://www.bgnett.no/~giva/watt-doc/a01769.html to get a rough idea what may cause the problem?

Check your address ranges.

Could please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Schelstraete Bart_1
Frequent Advisor

Re: ERR#227 EADDRNOTAVAIL

Hi Peter,

The code (java) is just doing a multicast to 237.0.0.1. And 237.0.0.1 is a valid multicast address as far as I know.
(I'm using hp-ux 11.23, Itanium)