convert TCP/IP to Address name on LAN network
Anything that can access normal sockets functions directly should be able to use gethostbyaddr or gethostinfo.
Anything that can access normal sockets functions directly should be able to use gethostbyaddr or gethostinfo.
You have to have some sort of name service, such as DNS, in order for gethostbyaddr() to determine the hostname for a given address. There is apparently a problem with this when you are going Windows to linux. In general, I have had a lot of reliability problems myself with resolving hostnames this way and … Read more
listenfd = lacz_tcp(wiadomosc->port); From what I can tell, the port has not been initialized before you call bind. Log the port to be sure that the server is listening on the correct port.