• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Binding to a specific IP address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding to a specific IP address


  • Subject: Re: Binding to a specific IP address
  • From: "Justin C. Walker" <email@hidden>
  • Date: Sat, 16 Dec 2006 14:33:48 -0800


On Dec 16, 2006, at 14:12 , Christopher Kempke wrote: [snip]
Everything works until the bind, which returns -1 and an errno of 49 (EADDRNOTAVAIL: can't assign requested address). If I replace the address with INADDR_ANY, the code works.

Try zeroing out the sockaddr struct before using it. The kernel can be kind of picky about that.


Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
If it weren't for carbon-14, I wouldn't date at all.
-----------


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Binding to a specific IP address (From: Christopher Kempke <email@hidden>)

  • Prev by Date: Binding to a specific IP address
  • Next by Date: Re: Binding to a specific IP address
  • Previous by thread: Binding to a specific IP address
  • Next by thread: Re: Binding to a specific IP address
  • Index(es):
    • Date
    • Thread