Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows | Cannot use loop back address to connect to locally started Server #642

Open
Aderinom opened this issue Dec 17, 2021 · 2 comments

Comments

@Aderinom
Copy link

Aderinom commented Dec 17, 2021

For some reason my own code and the example programs only work when utilizing the init_no_thread implementation of ursctp.
Attached are the logs from usrsctp and a capture with Wireshark.

I've tested with:

Working Config

st_client.exe 0.0.0.0 9900 127.0.0.1 9899 7
echo_server.exe 9899 9900

Result : Connection gets established

Not Working Config

client.exe 127.0.0.1 7 0 9900 9899
echo_server.exe 9899 9900

Result :

  • Init is send and received
  • Init_ack is send but seems to be dropped or ignored.

I've had the same results when I rewrote my own code to use the normal implementation of usrsctp.

Attached are logs and network captures from each config.
Current commit : f7368e6

usrsctp_bug.zip

@Aderinom Aderinom changed the title Windows | Example Programs cannot connect Windows | Threaded Example Programs cannot connect (UDPEncapsulation is on) - only st_client works Dec 17, 2021
@Aderinom
Copy link
Author

From the Manual:

If client and server are started on the same machine, the loopback address 127.0.0.1 can be used for Unix-like OSs and the local address on Windows.

So problem was that I was using 127.0.0.1, using my IPaddress to connect worked.
Still - is there a reason that you can't use the loopback address for usrsctp?

@Aderinom Aderinom changed the title Windows | Threaded Example Programs cannot connect (UDPEncapsulation is on) - only st_client works Windows | Cannot use loop back address to connect to locally started Server Dec 17, 2021
@tuexen
Copy link
Member

tuexen commented Dec 17, 2021

From the Manual:

If client and server are started on the same machine, the loopback address 127.0.0.1 can be used for Unix-like OSs and the local address on Windows.

So problem was that I was using 127.0.0.1, using my IPaddress to connect worked. Still - is there a reason that you can't use the loopback address for usrsctp?

I don't think usrsctp is doing any specific here. I guess, 127.0.0.1 is kind of special on Windows? I have no experience with WIndows, so I can't tell. Maybe @weinrank knows...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants