publishing a socket