[core] add socket info debug and make sockets IPv4