getting socket