Fix the socket problem and mono
- Use ipv4 since we only care about the loop back adapter

#526