# PHP Socket Server Tutorial, Help!

**URL:** <https://forum.kirupa.com/t/php-socket-server-tutorial-help/270746>\
**Category:** programming\
**Created:** [September 13, 2008, 1:43pm UTC](https://forum.kirupa.com/t/php-socket-server-tutorial-help/270746 "2008-09-13T13:43:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grimm\_88](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@grimm\_88](https://forum.kirupa.com/u/grimm_88)\
**Post date:** [September 13, 2008, 1:43pm UTC](https://forum.kirupa.com/t/php-socket-server-tutorial-help/270746/1 "2008-09-13T13:43:37Z")

</div>

Hi… this is my first post in these forums so please be nice! XD

anyway, i followed a tutorial by Raymond aka ObiAdmin HERE: [http://www.kirupa.com/developer/flash8/php5sockets\_flash8.htm](http://www.kirupa.com/developer/flash8/php5sockets_flash8.htm)

now i managed to install apache, php and get the socket server to run through command prompt, but whenever i try to access it with flash it fails for some reason!

the strange thing is that when i export (ctrl+enter) my flash movie INSIDE the actual flash program it can either connect or say that it hasn’t connected (depending on wether i am running the socketShell.php via command prompt) but whenever i open it any other way such as by double clicking the .swf or going to localhost/flash.html it ALWAYS fails no matter what i do and even if i am running the socket shell!

anyway, i was just wondering if anybody else had this problem and if they had any idea how to fix it?

also, here is some more information:

my apache httpd.conf file if listening on 192.168.1.70:80 (my LAN ip address, and i checked that it was right) and the servername is the same… i am also port forwarding (ports 80 and 1234 [i am running socket server on 1234]) so that people from outside can view my files, and it works, but they also see the ‘could not connect’ error…

inside my flash i have tried everything… changing the thing to connect to from localhost to 192.168.1.70 (internal LAN ip), my external ip, my no-ip redirection site name, 127.0.0.1 and NOTHING works! but i only get the connection inside the flash preview window when it is set to localhost or 127.0.0.1

anyway, sorry for the wall of text, hope somebody can help me!
