Can connect from external but not locally

14 views
Skip to first unread message

Germain

unread,
May 17, 2011, 7:59:56 PM5/17/11
to asSQL
I have a Flex application that read newspaper article in a MySQL db:

If I connect from my computer to server address, it's working:

<assql:MySqlService id="service"
hostname="70.28.26.240"
port="3333"
username="user"
password="password"
database="db"
autoConnect="true"
/>

But when I load the web page on the server, with localhost or
127.0.0.1, it does not connect. The only event that is fired is the
service activate with "bubbles" at phase 2.

<assql:MySqlService id="service"
hostname="127.0.0.1"
port="3333"
username="user"
password="password"
database="db"
autoConnect="true"
/>

The server is Windows Server 2008 with no Apache, only Php and MySQL.

Any ideas?

Thanks

Germain

César Mendoza

unread,
May 18, 2011, 10:25:08 AM5/18/11
to as...@googlegroups.com
have you checked the policies file?

> --
> You received this message because you are subscribed to the Google Groups "asSQL" group.
> To post to this group, send email to as...@googlegroups.com.
> To unsubscribe from this group, send email to assql+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/assql?hl=en.
>
>

--
Saludos.
César Javier Mendoza.

Germain Bataille

unread,
May 18, 2011, 11:08:08 AM5/18/11
to as...@googlegroups.com
The GFS Server serve the policie file when requested:

<cross-domain-policy><allow-access-from domain="*"
to-ports="843"/></cross-domain-policy>

Is that ok?


Le 2011-05-18 10:25, C�sar Mendoza a �crit :

César Mendoza

unread,
May 18, 2011, 12:17:51 PM5/18/11
to as...@googlegroups.com
Do a "telnet localhost 3306"
and
Check this:
http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html
and this:
http://dev.mysql.com/doc/refman/5.0/en/blocked-host.html

On Wed, May 18, 2011 at 12:08 PM, Germain Bataille
<germain....@videotron.ca> wrote:
> The GFS Server serve the policie file when requested:
>
> <cross-domain-policy><allow-access-from domain="*"
> to-ports="843"/></cross-domain-policy>
>
> Is that ok?
>
>

--
Saludos.
César Javier Mendoza.

Germain Bataille

unread,
May 18, 2011, 12:31:20 PM5/18/11
to as...@googlegroups.com
Hi,
Answer: 5.5.2-m2-community.

This MySQL server is working, I did a lot of intranet on it. But it's on
port #3333

Le 2011-05-18 12:17, C�sar Mendoza a �crit :


> Do a "telnet localhost 3306"
> and
> Check this:
> http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html
> and this:
> http://dev.mysql.com/doc/refman/5.0/en/blocked-host.html
>
> On Wed, May 18, 2011 at 12:08 PM, Germain Bataille
> <germain....@videotron.ca> wrote:
>> The GFS Server serve the policie file when requested:
>>
>> <cross-domain-policy><allow-access-from domain="*"
>> to-ports="843"/></cross-domain-policy>
>>
>> Is that ok?
>>
>>

>> Le 2011-05-18 10:25, C�sar Mendoza a �crit :

César Mendoza

unread,
May 18, 2011, 12:41:46 PM5/18/11
to as...@googlegroups.com
ok, do you check if connect with telnet localhost 3333 and telnet
127.0.0.1 3333?

On Wed, May 18, 2011 at 1:31 PM, Germain Bataille
<germain....@videotron.ca> wrote:
> Hi,
> Answer: 5.5.2-m2-community.
>
> This MySQL server is working, I did a lot of intranet on it. But it's on
> port #3333
>

--
Saludos.
César Javier Mendoza.

Germain Bataille

unread,
May 18, 2011, 12:53:24 PM5/18/11
to as...@googlegroups.com
Yes, it's working.

This is the website: http://www.coalitionsouverainiste.com/journal/index.php

When it's connect to DB, its showing articles in the page. But now, it's
just showing the two defaults hardcoded pages.

I would really like to get this thing to work, I'm doing a newspaper
application for Facebook.

Thanks for your help


Germain

Le 2011-05-18 12:41, C�sar Mendoza a �crit :


> ok, do you check if connect with telnet localhost 3333 and telnet
> 127.0.0.1 3333?
>
> On Wed, May 18, 2011 at 1:31 PM, Germain Bataille
> <germain....@videotron.ca> wrote:
>> Hi,
>> Answer: 5.5.2-m2-community.
>>
>> This MySQL server is working, I did a lot of intranet on it. But it's on
>> port #3333
>>

>> Le 2011-05-18 12:17, C�sar Mendoza a �crit :

>>> Do a "telnet localhost 3306"
>>> and
>>> Check this:
>>> http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html
>>> and this:
>>> http://dev.mysql.com/doc/refman/5.0/en/blocked-host.html
>>>
>>> On Wed, May 18, 2011 at 12:08 PM, Germain Bataille
>>> <germain....@videotron.ca> wrote:
>>>> The GFS Server serve the policie file when requested:
>>>>
>>>> <cross-domain-policy><allow-access-from domain="*"
>>>> to-ports="843"/></cross-domain-policy>
>>>>
>>>> Is that ok?
>>>>
>>>>

>>>> Le 2011-05-18 10:25, C�sar Mendoza a �crit :

César Mendoza

unread,
May 18, 2011, 12:57:04 PM5/18/11
to as...@googlegroups.com
Well, now I'm working and dont have Flex here, I will check it at night.

On Wed, May 18, 2011 at 1:53 PM, Germain Bataille
<germain....@videotron.ca> wrote:
> Yes, it's working.
>
> This is the website: http://www.coalitionsouverainiste.com/journal/index.php
>
> When it's connect to DB, its showing articles in the page. But now, it's
> just showing the two defaults hardcoded pages.
>
> I would really like to get this thing to work, I'm doing a newspaper
> application for Facebook.
>
> Thanks for your help
>
>
> Germain
>

> Le 2011-05-18 12:41, César Mendoza a écrit :
>>
>> ok, do you check if connect with telnet localhost 3333 and telnet
>> 127.0.0.1 3333?
>>
>> On Wed, May 18, 2011 at 1:31 PM, Germain Bataille
>> <germain....@videotron.ca>  wrote:
>>>
>>> Hi,
>>> Answer: 5.5.2-m2-community.
>>>
>>> This MySQL server is working, I did a lot of intranet on it. But it's on
>>> port #3333
>>>

--
Saludos.
César Javier Mendoza.

Germain

unread,
May 20, 2011, 10:28:44 AM5/20/11
to asSQL
I tested the web site on my localhost and it doesn't connect either.

Finally the only way it's working, it's when I launch it from Flex.

Maybe I'll try with AMFPHP but it's looking very complicated...
Reply all
Reply to author
Forward
0 new messages