Improve router alert handling, add UDP socket support