Hello, I creating a socket() in C language with bind() method for bind non-local ipv6 address. When try connect getting timeout error. In Linux i used AnyIP feature and very good working.
In man page:
In man page:
Code:
If the IP_BINDANY option is enabled on a SOCK_STREAM, SOCK_DGRAM or a
SOCK_RAW socket, one can bind(2) to any address, even one not bound to
any available network interface in the system. This functionality (in
conjunction with special firewall rules) can be used for implementing a
transparent proxy. The PRIV_NETINET_BINDANY privilege is needed to set
this option.