I have made some progress and I think I need to get it to work like this C-example:
=================================================
int sockfd = socket(AF_INET, SOCK_STREAM, 0);
struct sockaddr_in localaddr;
localaddr.sin_family = AF_INET;
localaddr.sin_addr.s_addr = inet_addr("192.168.1.100");
localaddr.sin_port = 0; // Any local port will do
bind(sockfd, (struct sockaddr *)&localaddr, sizeof(localaddr));
=================================================
I tried to set the server_name to 192.168.1.100 in the .ini file but it did not work, it did not handle it correct and it failed. I tried with setting a string like
telia.com and that was reflected in the system but it of course failed when it tried to use it.
Regards
Anders