Finish remote server base function, resending messages

Signed-off-by: Frca <killerfrca@gmail.com>