Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8473997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:30:15+00:00 2026-06-10T17:30:15+00:00

I have a mini server listening on port 843 for <policy-file-request/> I then send

  • 0

I have a mini server listening on port 843 for <policy-file-request/>
I then send down the following:

<cross-domain-policy>
<allow-access-from domain="*" to-ports="*"/>
</cross-domain-policy>

On my flash side the connection code looks like

m_socket = new Socket("127.0.0.1", 4600);
m_socket.addEventListener(ProgressEvent.SOCKET_DATA, OnSockData);

m_socket.writeUTFBytes(String.fromCharCode(255) + String.fromCharCode(0));
m_socket.flush();

I have a separate server listening on port 4600 that expects to get the char 255 from the client but it is never sent. The connection on port 4600 is established but the data is never sent.

The mini server on port 843 is successfully getting the connection from the client and sending the policy file as well.

So either there is some problem with the policy file submission (which I’m not sure how to check in AS3). Or option 2 is that for some reason data is being lost during the initial connection process.

P.S. If I don’t run the mini server on port 843 the server on port 4600 will receive the policy file request (as per AS3 protocol).

I would appreciate any tips on what to check here. I’m not sure what is going wrong. I had been doing everything through the flash debugger and didn’t need the policy file request stuff until now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:30:16+00:00Added an answer on June 10, 2026 at 5:30 pm

    You might need the full XML with doctypes. Also, you might need to actually restrict the port as well. Try this:

    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy><allow-access-from domain="*" to-ports="4600" /></cross-domain-policy>
    

    EDIT: try m_socket.addEventListener(Event.CONNECT, connectHandler); and then create the connectHandler function to send your data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a mini web-server which needs to serve up a few static
I have installed Nginx 1.2.0 with Passenger on my Mac Mini running Lion Server.
I want to create a 'mini-database'. I want to have one file with lots
I have a stock mac-mini server (2.53GHz, 4GB, 5400RPM drive) which I use for
I have a Mac mini with Snow Leopard Server installed on it. I need
I am tranfering a file from one server to another using Core FTP mini-sftp-server
I have created a mini installer in NSIS that installs patches for my application.
I have a task/mini project to complete which is along the lines of GUI
I have a sort of mini parsing syntax I made up to help me
i have a problem (obviusly :P) i'm create a mini game, and when i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.