-
Hi,
I have this perl socket server which is working fine locally. I tried to connect to the socket server from a remote system, which failed.
Not sure if this is important info but the server is running on a linux os with apache and I tried to access the flash movie through http://my.ip.here/flashmovie.swf
The host in the flash movie and the perl script is both set to "localhost".
Everything is loading correctly except for connecting to the socket server.
In both the flash movie and the perl file I changed the host to my IP address but with these settings I couldn't connect locally.
Any ideas of what is going wrong?
regards,
Raoul
-
Uhm...
So...
You see the SWF - but the SWF won't connect to the Perl socket server?
do you have a firewall?
Are you using a port above 1024?
Is there a router between you and the Perl app?
Let's start there.
It's either a security issue - which shouldn't happen if the SWF and the Perl server reside on the same machine - or its a 'routing' issue - which browsers don't run into since they connect through a standard port (80).
Other than that - I'm not sure...
-
Yes, I see the swf but there is no connection although I do not receive the confirming message of this because of the problem I have with the onConnect eventhandler (see other thread). The textfield just remains blank.
I am on a lan connection with a router but I am pretty sure the router is (I don't know the english word) opened? to all connections.
I am quite new to linux and running a server, I installed Red Hat 7.3 last week and actually I remember I had the option to manually fill out port numbers to allow data traffic in the security section. Didn't put any port numbers in there. I will check on that!
So using 'localhost' in the configuration is definitely not the problem?
Thanks,
Raoul
-
uhm...
I'd use localhost in the perl server, and the IP in the SWF.
Not that you have to - it'd just be eliminate problems.
(and yes - opened was the right word :) )