realize bind server and activity