Error using bind:Cant assign requested address

Error using bind:Cant assign requested address

Post by Seshu Madhavaped » Wed, 28 Oct 1998 04:00:00



I am running a server and different clients which connect to
this server (On HP800 machine using HP 10.10). All clients
except one are working fine. That client is giving an error
while calling bind saying "bind:Cant assign requested address"

Can anyone tell me how should I proceed to debug this problem?
The code used by all clients is similar.

Thanks,
MohanRam

 
 
 

Error using bind:Cant assign requested address

Post by Craig Johnst » Wed, 28 Oct 1998 04:00:00




>I am running a server and different clients which connect to
>this server (On HP800 machine using HP 10.10). All clients
>except one are working fine. That client is giving an error
>while calling bind saying "bind:Cant assign requested address"

>Can anyone tell me how should I proceed to debug this problem?
>The code used by all clients is similar.

You really haven't given enough information to go on here.  Post
some code, or describe what the client is trying to do in greater
detail.

Your error should correspond to EADDRNOTAVAIL.  I'm not familiar with
HPs bind(), so 'man bind' and check to see under what conditions this
error is returned.  

I'd check to see that you are calling bind() with sane
arguments.

Does the client actually need to connect from a specific local
address?  If not, you don't have to bind() at all.

-Craig

 
 
 

Error using bind:Cant assign requested address

Post by Wesley W. Garlan » Wed, 28 Oct 1998 04:00:00



> I am running a server and different clients which connect to
> this server (On HP800 machine using HP 10.10). All clients
> except one are working fine. That client is giving an error
> while calling bind saying "bind:Cant assign requested address"

> Can anyone tell me how should I proceed to debug this problem?
> The code used by all clients is similar.

I'll bet you dollars to cents that you're a non-root user trying
to bind to a port < 1024.

Are you checking the return value from socket()?

Cheers,
Wes

--
Wesley W. Garland           | Home: (613)549-9984 Cell: (613)539-2951

PageMail, Inc.              |
Kingston, ON Canada         |  Do daemons dream of electric sleep()?

 
 
 

Error using bind:Cant assign requested address

Post by Balachander Chandrasekara » Thu, 29 Oct 1998 04:00:00


Seshu,

    You must have tried to bind to a network address for which network
interface does not exist.

Regards
-Bala


> I am running a server and different clients which connect to
> this server (On HP800 machine using HP 10.10). All clients
> except one are working fine. That client is giving an error
> while calling bind saying "bind:Cant assign requested address"

> Can anyone tell me how should I proceed to debug this problem?
> The code used by all clients is similar.

> Thanks,
> MohanRam

--
Unix is simple and coherent , but it takes a genius  to understand
and appreciate  its simplicity .
                                   Dennis Ritchie .
 
 
 

1. Q: talk error--[Couldn't bind to control socket : Cannot assign requested address (99)]

I am using Slackware 2.2 with linux kernel 1.2.8 and whenever I try to intiate
a talk session with anyone (even myself), or reply to someones talk request I
get the following error message:

        [Couldn't bind to control socket : Cannot assign requested address (99)]

When I try to do the same thing using ytalk I get the following message:

                 ##############################################
                 #                Ytalk Error                 #
                 #                                            #
                 #  No talk daemon on planitia.cybercom.net   #
                 #         No such file or directory          #
                 ##############################################

I am pretty sure that everything is set up correctly in /etc/services and
/etc/inetd.conf since I have compared them to several working systems and found
nothing to be different. Any help on this error would be greatly appreciated.

Thank you.


2. How do I get a quote of the day?

3. bind: Can't assign requested address

4. reading a XENIX floppy with unixware

5. lpr and netatalk: proplems with ifpap

6. lpd[252]: bind: Cannot assign requested address

7. apache startup error: cannot assign requested address: make_sock.

8. pppd 2.3.5 error-"Cannot assign requested address"

9. Solaris Error: 126: Cannot assign requested address

10. bind assigning invalid source address to udp packet

11. Cannot assign address when trying to bind