UDP connectiong
Main loop.