Skip to main content
Participant
May 25, 2011
Answered

Adobe Flash Media Server, Connection, Ports

  • May 25, 2011
  • 1 reply
  • 2091 views

Hello, guys! Is it possible to run AFM Server on two different ports (one for http and one for https) at the same time? If this is possible, please, explain how could I set it up? Thanks in advance!

    This topic has been closed for replies.
    Correct answer manish_kumar2

    Actually the standart port is working properly, but the new custom adapter doesn't.


    Hi,

    Sorry I was confused with query you had asked for. Listening to 2 different ports can be done easily by editing fms.ini.

    Rplace ADAPTOR.HOSTPORT = :1935,80 entry by ADAPTOR.HOSTPORT = :1935,80,22. Then restart the server.

    Now if you can make RTMP connection from any of the above specified ports (specify rtmp://<server-ip>:22/app

    Thanks.

    1 reply

    Participating Frequently
    May 26, 2011

    Hi,

    Yes it is possible to configure different ports for http and https. Here is how to configure it.

    Go to <fms-install>/Apache2.2/conf/ make the following changes in httpd.conf.

         > By default Listen 8134 entry would be there and add another entry Listen 443.

         > Create 2 different virtual hosts listening one to 8134 and other to 443 using tag

        <VirtualHost _vhost_:port> </VirtualHost>
      > Disable SSL in vhost with port 8134 and enable in 443.
      > Do the configuration (SSL cert path etc) accordingly for vhost with port 443.

    Thanks.
    nenito83Author
    Participant
    May 26, 2011

    Hi kumar,

    I didn't actually specify, which protocol and what kind of connection. Your reply is regarding web server setup.

    The question should be: Is it possible to set up RTMP to listen to standart 1935 and to 22 at the same time (fms.ini config file)? I'm using AFMS v.3.

    Thanks!

    Participating Frequently
    May 27, 2011

    Yes thats possible.

    You need to create an adaptor host to listen into port 22. Here is how you do it.

    1) In fms.ini under ADAPTOR.HOSTPORT = :1935,80 entry add one more adaptor host port by specifying ADAPTOR.HOSTPORT_1 = :22.

    2) Under <fms-install>/conf/ create a copy of _defaultRoot_ and rename it to some custom name.

    3) Open<fms-install>/conf/custom/Adaptor.xml.

    4) Replacethis tag <HostPort name="edge1" ctl_channel="localhost:22">${ADAPTOR.HOSTPORT_1}</HostPort> under <HostPortList></HostPortList>

    5) Restart the FMS.

    Thanks.