Because many NAT boxes cannot process raw SCTP packets, it is often necessary to encapsulate SCTP packets within UDP datagrams.
Server Configuration
When running the discard_server, specify the local and remote encapsulation ports:
discard_server [local_encaps_port remote_encaps_port]
Example: ./discard_server 11111 22222
Client Configuration
When running the client, the encapsulation ports must match the server's configuration (the server's local_encaps_port is the client's remote_encaps_port, and vice versa). The client requires the remote address and port first:
client remote_addr remote_port [local_port local_encaps_port remote_encaps_port]
Example: ./client 127.0.0.1 9 0 22222 11111 (where 22222 is the server's local port and 11111 is the server's remote port).
# Server
$ ./discard_server 11111 22222
# Client
$ ./client 127.0.0.1 9 0 22222 11111