Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Date Date
Qty:
Subtotal
Promotions
Estimated Shipping
VAT
Calculated at checkout
Total
Checkout
Flash Media Rights Management Server Help / 

Ports and firewalls | Flash Media Server

Adobe Community Help


Products Affected

  • Flash Media Rights Management Server
  • Adobe Media Server

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

For a complete list of ports and protocols Flash Media Server uses to communicate, see Configure ports in the Flash Media Server Configuration and Administration Guide.

To test whether a client can connect to a Flash Media Server hosted by Stefan Richter of TheRealTimeWeb, see Port Tester. To test whether a client can connect to your server, use a Port Tester developed and hosted by Jake Hilton.

By default, Adobe Flash Media Server communicates with clients over the following ports (this list is simplified):

Port Protocol Transport Description
1935 RTMP/E TCP Flash Media Server listens for RTMP/E requests on port 1935/TCP. Flash Player and AIR clients attempt to connect over ports in the following order: 1935, 80 (RTMP), 80 (RTMPT).
1935 RTMFP UDP Flash Media Server listens for RTMFP requests on port 1935/UDP.
80 RTMP, RTMPT, HTTP TCP Flash Media Server listens for HTTP requests on port 80. Flash Media Server falls back to port 80 if a client cannot con
8134 HTTP TCP Flash Media Server forwards HTTP requests to Apache HTTP Server on port 8134. 
1111 HTTP, RTMP TCP Flash Media Administration Server listens for HTTP and RTMP requests on port 1111.

Some firewalls reject traffic that doesn't use the HTTP protocol. This behavior can prevent communication over RTMP even if port 1935 is open. Consult the documentation for the firewall to determine how to configure it to allow RTMP traffic.

To use RTMP and RTMFP, firewalls between the server and clients must allow inbound and outbound traffic on port 1935. If you cannot configure the firewall to allow traffic on port 1935, configure the server to use a different port. Configure the port in the fms.ini file or in the <HostPort> tag of the Adaptor.xml file. See Configure ports.

If you configure the server to use a port other than 1935, specify the port in the NetConnection.connect() statement. In client-side ActionScript, if a port is specified in the NetConnection.connect() statement, Flash Player attempts to connect only on the specified port:

nc.connect("rtmp:/mydomain.com:80/myAppName");

If the NetConnection.connect() statement does not include a port, Flash Player attempts to connect over 1935. If a connection is not made, Flash Player attempts to connect using port 80, and then port 443. 

nc.connect("rtmp:/mydomain.com/myAppName");

Although Flash Player automatically attempts to connect to Flash Media Server over multiple ports, the time between connection attempts can be longer than you would like. Also, you sometimes want to attempt to connect over more ports than Flash Player uses by default. Jake Hilton has created a class called NetConnectionSmart that quickly connects a client to Flash Media Server through a firewall. The NetConnectionSmart class also includes properties that let you choose whether to use RTMPE, whether to use tunneling, and so on. 

You can also write your own ActionScript that uses multiple ports to connect to Flash Media Server. The following is a simple example:

function init() {
 portList = [1935, 80, 443, 8080, 7070];
		
	  i = 0;
		
	  nc = new NetConnection();
		
	  nc.onStatus = function(info) {
		
	   if (info.code == "NetConnection.Connect.Failed") {
		
	    trace("failed on "+portList[i]);
		
	    i++;
		
	    connectInterval = setInterval(doConnect, 100);
		
	   } else if (info.code == "NetConnection.Connect.Success") {
		
	    //call other functions here
		
	    trace(nc.uri+": "+info.code);
		
	   }
		
	  };
		
	  doConnect();
		
	 }
		
	 function doConnect() {
		
	  clearInterval(connectInterval);
		
	  trace("i is: "+i+" and portList[i] is: "+portList[i]);
		
	  nc.connect("rtmp://yourDomain.com:"+portList[i]+"/yourAppName");
		
	 }
		
	 init();

To use this code, change yourDomain.com to the domain of your Flash Media Server. Change yourAppName to the name of the application on the server. To attempt to connect to additional ports, add port numbers to the portList array. Use setInterval() and clearInterval() to spread the connection attempts over time. Use an interval from 1 to 100 milliseconds.

Keywords: port; firewall; 1935; 1636; 443; 8080; rtmp; http; rtmpe; tn_16499

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement