all groups > macromedia flash flashcom > may 2007 >
You're in the

macromedia flash flashcom

group:

FMS 2 NetConnection.Connected.Rerjected


FMS 2 NetConnection.Connected.Rerjected toqz
5/11/2007 12:00:00 AM
macromedia flash flashcom:
I want to create Audio/video chat application.
I have FMS 2.0.4 and XAMMP 1.6 installed on my computer locally.
i use the following code to test a connection to the FMS:

conn = new NetConnection();
conn.connect("rtmp:/localhost/my_app");
conn.onStatus = function(info) {
trace ("Level: "+info.level+" Code: "+info.code);
};

but it seems it cannot establish a connection to the FMS server and
returned the following errors:

Level: error Code: NetConnection.Connect.Rejected
Level: status Code: NetConnection.Connect.Closed

tried these other codes too on the connect function:

conn.connect("rtmp://localhost/my_app");
conn.connect("rtmp://127.0.0.1/my_app");
conn.connect("rtmp:/127.0.0.1/my_app");
conn.connect("rtmp:/my_app");

but still no luck.
What seems to be the problem in my configuration?
By the way, I tried to disable the XAMMP but stll it cannot establish a
connection?
Tried to run it in macromedia flash 8 using alt+enter and through the
webserver using the publish html and swf files but still the same.

Ive been working on this for days.
Im desperate,i need to start working on the application already.
Somebody please help..
tnx..
Re: NetConnection.Connect.Rejected in FMS 2 chapel21
5/13/2007 7:14:21 PM
i had this problem too, in fact i had this problem right after a clean install
of the product. i did some research online and found that this is not uncommon.
unfortunately, the solution, while easy, is hard to find.

Basically you'll want to use the following syntax:

conn.connect("rtmpt://localhost/my_app");
conn.connect("rtmpt:/my_app");

If these do not work, which it did not for me, i found success when i also
included the port number as:

conn.connect("rtmpt://localhost:1935/my_app");

I have no idea what the extra t at the end means, but my understanding is that
this is the protocol used when behind a firewall. apparently a variety of
services like mcafee, norton, windows firewall, etc. all block these requests
unless you are using rtmpt.

also note that the single slash is used when the domain/server is the
localserver. e.g. rtmpt:/my_app is the same as rtmpt://localhost/my_app.
however, if these don't work as i mentioned above you and must include the port
number, then only rtmpt://localhost:1935/my_app can be used.

let me know if this works for you as i'm curious how successful this solution
is.
Re: NetConnection.Connect.Rejected in FMS 2 JayCharles
5/14/2007 12:00:00 AM
To clarify... the extra "t" means "tunneling". When tunneling, the rtmp packets
are wrapped in http headers. When tunneling, speed and performance suffer a bit.

Typically, when tunneling, you'd use port 80. In most cases the firewall is
simply blocking port 1935, in which case it wouldn't matter if you use rtmp or
rtmpt over port 80.
Re: NetConnection.Connect.Rejected in FMS 2 chapel21
5/14/2007 3:57:56 PM
also be sure to check your log files (or you can go in through the admin
console and view the server log).

with this particular error, i personally had:

"Asynchronous I/O operation failed (Failed to attach to completion port: The
parameter is incorrect."

if you do a search on this error you will find not so much information. i was
able to get my application working using the rtmpt protocol, but now, after
coming back to work and booting my machine, it's not working again and i have
the same error.

things i've tried:

1) i shut down all anti-virus and firewall applications and services
2) run netstat -a to see what is running and what ports are being used
3) try specifying a different port for FMS to run on (default = 1935). this
can be changed via $InstallDirectory$\conf\fms.ini (in windows). Inside the
file search for ADAPTOR.HOSTPORT and change the value to whatever port you want
to try.
4) try variations of the url e.g. rtmp:/ rtmpt:/ rtmpt://localhost
rtmpt://localhost:1935 etc.
5) make sure you don't have programs like netlimiter installed as this is a
known app that can cause problems w/ FMS by intercepting system calls on the
machine.

If you do find something that works, please contribute to this thread as it
could become valuable for others having these issues.
Re: NetConnection.Connect.Rejected in FMS 2 toqz
5/15/2007 2:42:44 AM
Finallyyyy! Whewww

got it to work on con = ("rtmpt://localhost:1935/app_name");
thanks to all you guys. ^_^.

Guess something is blocking my port 1935.

Re: NetConnection.Connect.Rejected in FMS 2 chapel21
5/15/2007 2:32:11 PM
glad you got it working.

for other people who stumble upon this issue and find themselves here, i found
some more information regarding particular software that creates issues with
FMS.

I had NOD32 (by ESET) on my machine. Fantastic anti-virus software. I read
that someone w/ this same software was having issues. They said they
uninstalled it and it worked.

I thought, "Well, uninstalling isn't necessary. I'll just shut it down and
disable it." So i did this, restart (just for thoroughness), and tried again.
It didn't work. I reluctantly uninstalled the application, restarted again, and
this time? FMS worked.

It's clear that somehow NOD32 creates a problem for FMS. How? When it's not
running? I have no idea. I hope this helps.
Re: NetConnection.Connect.Rejected in FMS 2 Flash_Ananth
5/16/2007 12:00:00 AM
I have created a application using media server. It is working properly in our
intranet. We are trying to access from out side out network. The http link is
accessible. But the server connection is failed. It is not happening while
running through internet.

Please can any one explain what are the settings needs to be done for external
access?

Advance Thanks!

ANANTH
Re: NetConnection.Connect.Rejected in FMS 2 toqz
5/21/2007 12:00:00 AM
It was the nod32 i guess.. thanks chapel21.
All is working now with "rtmp:/app_name"
since i removed my nod32.

it is now working in the network too.
thanks u all guyz . ^_-

Re: NetConnection.Connect.Rejected in FMS 2 Clare at GSB
5/25/2007 12:00:00 AM
Flash_Ananth,

Did you ever get an answer to your question about accessing FMS outside your network? I'm experiencing the same problem.

Re: NetConnection.Connect.Rejected in FMS 2 HITdrumHARD
5/25/2007 9:21:50 PM
Your network admin probably needs to allow access to port 1935 to the 'outside
world.' I don't know what the technical jargon is for this, since I am not a
network admin myself. I just told ours to open up port 1935, and it worked.
Re: NetConnection.Connect.Rejected in FMS 2 chapel21
6/3/2007 7:03:40 PM
Sorry i didn't check this post thread for awhile.

Flash_Ananth:

Have you checked the FMS log files to see if it is rejecting the connection?
If there is no errors related to attempted connections, then chances are the
firewall in the network or on the machine is preventing the connection as
HITdrumHARD suggested. I would also try opening port 1935, provided that you
haven't changed the default configuration of which port FMS listens on (to
determine this see the configuration file in the root). Once this is opened
continue to look in the FMS log files to see if you're receiving connections.
If you are, but it is still rejecting the connection, please submit the error
message in this thread.
Re: NetConnection.Connect.Rejected in FMS 2 Keltaz
6/5/2007 1:31:32 PM
Hi, I've very green to Flash Media Server and I've only worked servers a little
bit. But I'm trying my first program just to get started by streaming a video
and I've been having a lot of difficulty. The documentation I can find is
little help, so I've been looking through forums. My computer is not the flash
media server but the FMS is on the same network. I've tried different
netconn.connect() combinations and all four give me this error:
NetConnection.Connect.Failed. But when I open up the management console for
the FMS, it says that it connected to every combination except rtmpt without
the port (rtmp with the port and without and rtmpt with the port all say they
connected to the server).
The server increments the number of connects and disconnects simultaneously, I
think because the client doesn't think it's connected. Am I missing something?
Please help. Thanks.
AddThis Social Bookmark Button