Skip to main content
Participant
October 1, 2009
Question

How to limit ip's can connect to FMS???

  • October 1, 2009
  • 2 replies
  • 985 views

Hy,

I'm running a server where i stream 2-3 live tv channels and i'm posting it on my web page.

A few days ago i neticed that in FMS Console i have 6-7 LIVE INSTANCES and with many user connections.

I suppose someone get my server IP and use it to stream his matterials.

How can i limit the ip's who can connect to the FMS???

Please provide me an easy solution,i don't know it very well....please explain me how to do that.

Thank you,

    This topic has been closed for replies.

    2 replies

    November 12, 2009

    Hi,

    You could also use the following tags present in Adaptor.xml at FMS/conf/_defaultRoot_ where you can specify which IP address you want to allow connecting to your FMS and which ones you want to block.

    <!-- This tag specifies that clients can only connect to the server from -->
        <!-- the specified hosts. This is specified as a comma delimited list of -->
        <!-- hostnames or domain names and/or (full or partial) IP addresses.    -->
        <!-- For example:                                                        -->
        <!-- "foo.yourcompany.com, macromedia.com, 10.60.1.133, 10.60"           -->
        <Allow></Allow>
        <!-- This tag specifies that clients attempting to connect to the server -->
        <!-- from the specified hosts will be rejected. This is specified as a   -->
        <!-- comma  delimited list of hostnames or domain names and/or (full or  -->
        <!-- partial) IP addresses. For example,                                 -->
        <!-- "foo.yourcompany.com, macromedia.com, 10.60.1.133, 10.60"           -->
        <Deny></Deny>
        <!-- Specifies the order in which to evaluate the <Allow> and <Deny>     -->
        <!-- tags. This can be "Allow,Deny" or "Deny,Allow". The default is      -->
        <!-- "Deny,Allow" which means that access is allowed unless specified in -->
        <!-- <Deny> and not specified in <Allow>.                                -->
        <Order>Allow,Deny</Order>

    Thanks

    Mamata

    November 12, 2009

    you can use some server side logic to do this. In you sever side code in the function application.onConnect(client) (this function is called when client connects to the fms) you can do an IP checking using client.ip and if the ip doesn't match you can call application.disconnect(client) to simply disconnect that client.