public key retrieval before addtorudp