Fix security issue with socket bind call in webplayer