et-nik / et-nik/phpwebsocket

How do I bind to external address?

Open
#12 3 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
PHP
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?
1. changing the localhost in line 8 to become some external ip (e.g.
externalip.no-ip.org)
from ~~~~ $master = WebSocket("localhost",22222);
to ~~~~~~ $master = WebSocket("externalip.no-ip.org",22222);

What is the expected output? What do you see instead?
Expected output:
Server Started : 2010-05-26 18:46:24
Master socket : Resource id #4
Listening on : externalip.no-ip.org port 22222

but I see:
Warning: socket_bind(): unable to bind address [49]: Can't assign requested
address in
../server.php on line 60
socket_bind() failed.

What version of the product are you using? On what operating system?
r6
osx snow leopard

Thanks a lot!

```

Original issue reported on code.google.com by `james.tr...@gmail.com` on 26 May 2010 at 6:50

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.