sctplab / sctp-refimpl

Automatically exported from code.google.com/p/sctp-refimpl
BSD 2-Clause "Simplified" License
8 stars 2 forks source link

Cannot bind to loopback address (127.0.0.1 or ::1) on Windows #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Just bind to a loopback address.

What is the expected output? What do you see instead?
It failed with errno set to EADDRNOTAVAIL.

What version of the product are you using? On what operating system?
r9298, Windows 7 x64 (the library is compiled into x86)

Please provide any additional information below.

I think it failed because no interface could be found with a loopback address 
on Windows.
I took a look into the code and found that the function returns at 
sctp_pcb.c:3752.

Original issue reported on code.google.com by swordfen...@gmail.com on 11 Jul 2015 at 9:39

GoogleCodeExporter commented 9 years ago
Well, the Manual said that I have to connect to my local IP address, does it 
mean that it is impossible to use loopback addresses on Windows?

Original comment by swordfen...@gmail.com on 11 Jul 2015 at 10:04

GoogleCodeExporter commented 9 years ago
I think this is a Windows limitation. Can't you use one of you non-loopback 
addresses?

Original comment by t00FC...@googlemail.com on 17 Jul 2015 at 10:43

swordfeng commented 8 years ago

Good export to github. I just want to know whether this is solveavle, in the usrsctp stack. If it is not, well, that's not a big problem. But I'll feel uncomfortable, as I must provide a different setting for Windows.