The complete step-by-step guide (easy mode)

This will create a PHP socket server on your computer.

Windows XP

Apache 2.x(i lost the link so you need to find and download the x86-no_ssl.msi)

Downloadmy latest httpd.conf file (which configures your Apache appropriately) You will place this in C:\web\conf (inside your Apache install)

Readthis tutorial on installing Apache Web Server but don’t use their download links since they’re outdated.

PHP 5.xlink to download

Download – my latest php.ini which works (it goes in C:\web\php).

Readthis tutorial on installing PHP 5.x on your Server but don’t use their downloads. . . DO NOT INSTALL THE php.ini file in C:\WINDOWS like they suggest (that is for an older version). Instead it should be in C:\web\php (of your Apache and PHP install)

Type this code: inside your index.php file (inside htdocs where your website resides)
If php is running correctly you shall see a list of settings and configurations.

socketServer.phpThis .txt file which you will convert to socketServer.php (save it into C:\web\htdocs)

Type the following – into notepad and save as (all files) run.bat and save it to C:\web

c:/web/php/php.exe -q c:/web/htdocs/socketServer.php

Try It Out – Go to – Start > Run > and type in C:\web\run (press OK)
Your socket server should now be running!

Disable Windows Firewall – Click Start, click Run, type Firewall.cpl, and then click OK.
On the General tab, click Off. Then you will have to click the toolbar icon that warns you and put that you will use your own firewall.

Router Settings – You’ll have to configure your router and port forward the socket ports that you will be using. They must reflect your internal IP (find this by going to Start > Run > type cmd > type ipconfig > hit Enter (The top one that says IP ADDRESS is the one your specific computer is using on the network. You will also need to set this IP inside the socketServer.php $host variable

You will also set the $port variable to a number over 4200 (suggested) like 5156, etc. Get into your Router and find something that says Application & Gaming > Single Port Forwarding >

port forward example
(Linksys router shown)

Put this flash(Flash CS3 Version) (Flash 8 Version) into your c:\web\htdocs (website) and test it out.  (It works for me) You’ll need to open up the FLA and change the port and host variables to your own.

to be continued?  (i may add more to this later)

If you found this tutorial helpful, please feel free to donate to our site.