# Php/perl socket server

**URL:** https://forum.kirupa.com/t/php-perl-socket-server/68707
**Category:** Uncategorized
**Created:** [October 28, 2004, 4:16am UTC](https://forum.kirupa.com/t/php-perl-socket-server/68707 "2004-10-28T04:16:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![eirche](https://avatars.discourse-cdn.com/v4/letter/e/e95f7d/32.png) [@eirche](https://forum.kirupa.com/u/eirche)
#### Post date: [October 28, 2004, 4:16am UTC](https://forum.kirupa.com/t/php-perl-socket-server/68707/1 "2004-10-28T04:16:38Z")

</div>

i am a newbie in socket programming. i am trying to set up a socket server for chatting. chat client is web-based using flash’s xmlsocket.

\<?php  
//  
// socket\_server.php  
//  
$address = “localhost”;  
$port = 9000;  
// create socket, bind socket, etc etc…  
?\>

when working locally, my flash chat client successfully connected to this socket server via xmlsocket. but when chat client is opened from another computer, how to modify socket\_server.php for it to work? i made some naive attempts without success. i do not understand this. what else do i need?

would i be better off with perl?
