PHP socket_bind

Hi. I tried to use socket_bind to connect to anviz machine .
I’ve seen repositories using them , but when i tried to use all the time say to me: unable to bind address .
I am doing with php and xampp but.
I dont now if is to set up any archive in xampp or something.
Thanks for your time.
The code is very simple :
$socket = socket_create(AF_INET, SOCK_STREAM, 0);
socket_bind($socket, “”, “5010”);