| View previous topic :: View next topic |
| Author |
Message |
karthikbalaguru Guest
|
Posted: Mon Nov 10, 2008 11:19 am Post subject: Requested address |
|
|
Hi,
I get the below error that is very strange ->
" bind: Cannot assign requested address "
While running my application, i get the below error ->
bind error:
[createIPv6Socket], bind() error.
address = FEEE::219:d1ff:AAAA:705
bind: Cannot assign requested address
bind error !
Kindly let me know the possible area of problem .
Thx in advans,
Karthik Balaguru |
|
| |
|
Back to top |
Pascal Hambourg Guest
|
Posted: Mon Nov 10, 2008 5:53 pm Post subject: Re: Requested address |
|
|
Hello,
karthikbalaguru a écrit :
| Quote: |
While running my application, i get the below error -
bind error:
[createIPv6Socket], bind() error.
address = FEEE::219:d1ff:AAAA:705
bind: Cannot assign requested address
|
It could mean that the address FEEE::219:d1ff:AAAA:705 is not assigned
to any local interface on the host.
What application is this ?
Note that FEEE::219:d1ff:AAAA:705 is in the FEC0::/10 range which was
once defined as the site-local prefix but has been deprecated and is now
reserved. Therefore you are not supposed to use it. |
|
| |
|
Back to top |
karthikbalaguru Guest
|
Posted: Tue Nov 11, 2008 10:06 am Post subject: Re: Requested address |
|
|
On Nov 10, 4:53 pm, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
| Quote: | Hello,
karthikbalaguru a écrit :
While running my application, i get the below error -
bind error:
[createIPv6Socket], bind() error.
address = FEEE::219:d1ff:AAAA:705
bind: Cannot assign requested address
It could mean that the address FEEE::219:d1ff:AAAA:705 is not assigned
to any local interface on the host.
What application is this ?
Note that FEEE::219:d1ff:AAAA:705 is in the FEC0::/10 range which was
once defined as the site-local prefix but has been deprecated and is now
reserved. Therefore you are not supposed to use it.
|
I use fe80::219:d1ff:fea3:705. The bind error appears for that also.
Does inet_pton(AF_INET6, s_ipv6addr, (void *)&local_addr) have any
relation with Bind failure ?
But, the strange thing is, if i hardcode the address in my code, it is
working.
Else, it is breaking with the bind error. Any ideas ?
Thx in advans,
Karthik Balaguru |
|
| |
|
Back to top |
Pascal Hambourg Guest
|
Posted: Tue Nov 11, 2008 6:37 pm Post subject: Re: Requested address |
|
|
karthikbalaguru a écrit :
| Quote: |
I use fe80::219:d1ff:fea3:705. The bind error appears for that also.
|
This is a link-local address, which scope is valid only on a given link.
You may need to specify the interface in the form address%interface.
| Quote: | Does inet_pton(AF_INET6, s_ipv6addr, (void *)&local_addr) have any
relation with Bind failure ?
|
Sorry, I am not a networking programmer and cannot help you on this.
| Quote: | But, the strange thing is, if i hardcode the address in my code, it is
working.
|
What do you mean by "hardcode" ? |
|
| |
|
Back to top |
karthikbalaguru Guest
|
Posted: Wed Nov 12, 2008 10:12 am Post subject: Re: Requested address |
|
|
On Nov 11, 5:37 pm, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
| Quote: | karthikbalaguru a écrit :
I use fe80::219:d1ff:fea3:705. The bind error appears for that also.
This is a link-local address, which scope is valid only on a given link.
You may need to specify the interface in the form address%interface.
Does inet_pton(AF_INET6, s_ipv6addr, (void *)&local_addr) have any
relation with Bind failure ?
Sorry, I am not a networking programmer and cannot help you on this.
But, the strange thing is, if i hardcode the address in my code, it is
working.
What do you mean by "hardcode" ?
|
'Hardcode' refers to writing something directly into the source code
of a program.
It is a kind of writing configuration parameters or port number or ip
address etc..
directly into the source code of a program.
Strange !! Interestingly, i find that the same code works between 2
computers in one setup and does not work between 2 computers
in another setup until i hardcode the ip address in the same source
code.
Any ideas ?
Thx in advans,
Karthik Balaguru |
|
| |
|
Back to top |
|