Comments (7)
Regarding your first question: I'm not sure if 127.0.0.1 works on Windows.
Regarding your second question: Are you running this with root privileges? Are you behind a NAT? That might a problem with native SCTP. You might want to use Wireshark to capture the traffic. That might provide some more information.
@weinrank Can you test the above on a Windows system?
from usrsctp.
@pravic
I assume from the logfile that you already run the examples with administrative privileges - good.
The native SCTP mode needs administrative privileges while udp-encaps doesn't.
discard server and client
Don't use 127.0.0.1 - it doesn't work with Windows. Try using the IP of your local NIC and it should work.
http_client
The SCTP connection seems to be established: timer type 5 is the heartbeat timer.
As Michael Tüxen mentioned obove a wireshark tracefile would be helpful.
What happens if you disable IPv6 support in USRSCTP?
Are you using CMAKE?
from usrsctp.
Yea, cmake. I'll try without ipv6
from usrsctp.
Regarding your first question: I'm not sure if 127.0.0.1 works on Windows.
I took it from manual. Whats difference between Linux and Windows with 127.0.0.1?
Are you running this with root privileges? Are you behind a NAT?
Yes. Yes.
Try using the IP of your local NIC and it should work.
It works. The local servers (like echo) works both with and without encapsulation.
What happens if you disable IPv6 support in USRSCTP?
Nothing good: "usrsctp_socket: Unknown error", because all examples uses AF_INET6.
from usrsctp.
The manual states that you can use 127.0.0.1 on Unix like OSes and not on Windows. Regarding the difference of 127.0.0.1 between Windows and Linux: On Unix like OSes there is an loopback interface
and an address. On Windows this seems to be different. I don't know why. (I don't know much about Windows).
Running native SCTP through NATs most likely is an issue. That is why we use UDP encapsulation there.
from usrsctp.
SCTP does not use/support NAT traversal?
Well, thanks for explanation.
from usrsctp.
NATs must support SCTP, one way of doing this is specified in https://tools.ietf.org/html/draft-ietf-tsvwg-natsupp-09. It is supported, as far as I know, in FreeBSD.
For legacy NAT traversal use UDP encapsulation.
from usrsctp.
Related Issues (20)
- building fails at warning about parentheses: HOT 7
- CVE-2022-46871 impact on libusrsctp HOT 1
- Aborted with sctp_timeout_handler: tmr->self corrupted, but tmr->self is null in the core dump HOT 6
- Aborted with sodealloc(): so_count -58769387 -- suspected use-after-free in sctp_timeout_handler HOT 2
- Broken build on macOS 13.4 (apple sillicon) HOT 1
- What does usrsctp_conninput do? HOT 1
- [question] What's the release policy? HOT 2
- -Wunused-function atomic_init
- Question about the different streams in the same association HOT 2
- New release? HOT 2
- disabling sctp chunk bundling HOT 3
- user_environment.c: extra "{" in read_random()
- Q: Support for L4S HOT 1
- if usrsctp support android
- sctp over udp encapsulation does not work under NAT network : part 2 HOT 1
- Is it possiable adding BBR Congestion Control algorithm for usrsctp? HOT 1
- Crash in sctp_common_input_processing: race between usrsctp_conninput and usrsctp_accept HOT 1
- Reproducer: soref of deleted socket
- Deadlock between usrsctp_conninput and usrsctp_close HOT 1
- Self-deadlock in usrsctp_close while recv_callback is being invoked HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usrsctp.