I need help "binding" to a specific IP address.
My program is able to "bind" when using inaddr_any, but I can't seem to bind to a specific IP address using inet_addr("...."). I am basically trying to "bind" a socket to MY home pc's IP address, and a random port number (but the program simply refuses to bind to my home pc's IP address).
Can someone please help me to bind a socket to a specific IP address? Thanks in advance.