Jump to content

php socket


dzedward

Recommended Posts

That is normally the case. Two ways of fixing it. The hard and impractical method would be to setup a local dns server. The easier, and probably best solution would be to add an entry to your /etc/hosts file.

 

66.74.14.110 localhost

 

If your using windows you'll need to search for a file called hosts and edit that. I'm not a windows user so I'm not sure where it exists, but I know it does. This is the file that everyone had to use to resolv host names to ip addresses before the wan got so big we needed dns.

Link to comment
https://forums.phpfreaks.com/topic/103357-php-socket/#findComment-529339
Share on other sites

I added that to my hosts file, and am now able to ping it with no loss.  However, I'm still not able to bind or listen.  Here are the errors

 

unable to bind address [0]: The requested address is not valid in its context.

 

unable to listen on socket [0]: An invalid argument was supplied.

Link to comment
https://forums.phpfreaks.com/topic/103357-php-socket/#findComment-530763
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.