PLEASE HELP! FlashPolicyD perl stuff... driving me crazy

Discussion in 'Programming' started by webDOMinator, Aug 19, 2009.

  1. #1
    I am trying to get flashpolicyd running on my server... it runs just fine, but when I do a netstat I get the results....

    tcp 0 0 0.0.0.0:843 0.0.0.0:* LISTEN 29860/perl

    Which is wrong... it should not be listening to ip address 0.0.0.0 ... all of the rest of my servers are listening on an actual real IP addres... the ip of the server... does anyone know anything enough about perl to get this stupid thing working and listening on my server's ip address instead of 0?

    I'm tearing my hair out trying to fix this and my clients are PISSED.
     
    webDOMinator, Aug 19, 2009 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    listen to 127.0.0.1 maybe? or localhost?
     
    ccoonen, Aug 20, 2009 IP
  3. webDOMinator

    webDOMinator Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There are no options in the command line arguments to tell it what IP address to listen to. It will only listen to 0.0.0.0 ... and I had it working before, but the problem is that it's about 2 years since I first set it up, so I'm not sure what I did. :confused:
     
    webDOMinator, Aug 21, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    premiumscripts, Aug 21, 2009 IP
  5. webDOMinator

    webDOMinator Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm still using version 8 on my computer, which shouldn't have changed at all. Been the same since I first set it up. The problem though is mainly that I don't know how to get this perl script to listen on the right port. When I look at the code, it uses SO_REUSEIP or somesuch linux defined variable... should I just change this to my IP address I want it to listen on?
     
    webDOMinator, Aug 21, 2009 IP
  6. webDOMinator

    webDOMinator Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I fixed this issue. It turns out adobe's flashpolicyd was not answering correctly... my friend redid this in perl and made it so that upon connection, it just spits out the policy file instead of waiting for a request from each client.

    Works like a charm.
     
    webDOMinator, Oct 13, 2009 IP