Networking Forums

Networking Forums > Computer Networking > Linux Networking > Requested address

Reply
Thread Tools Display Modes

Requested address

 
 
karthikbalaguru
Guest
Posts: n/a

 
      11-10-2008, 10:19 AM
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
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      11-10-2008, 10:53 AM
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.
 
Reply With Quote
 
karthikbalaguru
Guest
Posts: n/a

 
      11-11-2008, 09:06 AM
On Nov 10, 4:53 pm, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
> 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
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      11-11-2008, 11:37 AM
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" ?
 
Reply With Quote
 
karthikbalaguru
Guest
Posts: n/a

 
      11-12-2008, 09:12 AM
On Nov 11, 5:37 pm, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice Requested- Best approach to MCSEcertifiction MSNews Windows Networking 3 10-29-2009 03:40 PM
Implementing DHCP client with INIT-REBOOT state as per RFC,'requested ip address' in dot notation? santa19992000@yahoo.com Linux Networking 0 12-04-2007 09:21 PM
Help requested with a different kind of setup Isaac Grover Wireless Internet 1 07-25-2006 05:58 AM
IPTABLES help requested Gururajan Ramachandran Linux Networking 4 09-07-2004 04:24 AM
Netgear RT-311 configuration help requested Peter Windows Networking 3 10-02-2003 11:09 AM



1 2 3 4 5 6 7 8 9 10 11