Differences between current version and predecessor to the previous major change of EADDRNOTAVAIL.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Thursday, March 3, 2005 2:07:03 pm | by DavidWeekly | |
Older page: | version 1 | Last edited on Sunday, February 23, 2003 1:45:59 am | by PerryLorier | Revert |
@@ -1,3 +1,5 @@
!!!Cannot assign requested address
You are attempting to bind(2) to a local address that isn't local. For example if the IP addresses of a machine are 127.0.0.1 and 1.2.3.4, and you're trying to bind to 1.2.3.5 you are going to get this error. Check to make sure the address you are trying to bind to exists on the machine you are trying to bind it from.
+
+This error can also come up if you're doing a "pre-bound connect", where you're first bind()ing to a local port, then doing an outbound connect with a socket. If the local port is already connected to the given remote IP and port (i.e., there's already an identical socketpair), you'll receive this error (value = 99 on Linux).