• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Allowed subnet mask IP

New Here ,
Feb 28, 2015 Feb 28, 2015

Copy link to clipboard

Copied

hi,

i have a code which is restrict publish from specified IP., if publisher is not 123.123.123.123 IP he cannot publish stream.

Now i want Subnet mask IP to allowed like 123.123.123.0/16.

application.onPublish = function(p_client, streamname){

     if (p_client.ip != "123.123.123.123"){

        application.disconnect(p_client);

    }

}

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2015 Feb 28, 2015

Copy link to clipboard

Copied

are you using flex?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2015 Mar 01, 2015

Copy link to clipboard

Copied

no. it is server side action script file main.asc in media server

how do make a code for only alowed ip is from 123.123.123.0/24

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 01, 2015 Mar 01, 2015

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 12, 2015 Mar 12, 2015

Copy link to clipboard

Copied

LATEST

Hi Richard

Welcome to Adobe Forums.

As per your query the Subnet Mask for IP 123.123.123.0/24 will 255.255.255.0 and if its is specific to one particular IP (i.e. 123.123.123.x) it will be 255.255.255.255. It will act as /32 in that case.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines