Hi all,
I'm writing a server in c++ that should reply to requests on mutliple virtual ip addresses. If I set the s_addr to be INADDR_ANY, the server answers to requests on all ip addresses except the virtual ones.
If I specify one of the virtual ip-addresses in stead of INADDR_ANY, the server answers to requests on the vitual ip.
I tried to set the IP_BINDANY socket option without any luck.
Is there something I've missed or do I have to bind each virtual addresses I want the server to listen on?
I'm writing a server in c++ that should reply to requests on mutliple virtual ip addresses. If I set the s_addr to be INADDR_ANY, the server answers to requests on all ip addresses except the virtual ones.
If I specify one of the virtual ip-addresses in stead of INADDR_ANY, the server answers to requests on the vitual ip.
I tried to set the IP_BINDANY socket option without any luck.
Is there something I've missed or do I have to bind each virtual addresses I want the server to listen on?