Implement RemoteServer both-way line redistribution

Signed-off-by: Frca <killerfrca@gmail.com>
Register server on socket creating

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