You might want to look a little more closely at the PHP manual section for that mysqli_connect.
If you do, you will note that the socket parameter, like the port parameter, is optional and is NOT required.
Just like when using mysql_connect,defaults are used when not specified. For instance:
$db = mysqli_connect($host, $login, $pass, $dbName);
... will "just work" without the parameter.