Python security settings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Laughlin, Joseph V

    Python security settings


    import SimpleXMLRPCSer ver
    rpc_server = SimpleXMLRPCSer ver.SimpleXMLRP CServer(("local host", 3010))
    print "XMLRPC Server started!"
    rpc_server.serv e_forever()

    When I run this program, I can connect to port 3010 on the localhost,
    but I can't connect to the port from any other machine (or from the
    local machine using the machine's hostname). Why is this?

    Joe Laughlin
    Phantom Works - Integrated Technology Development Labs
    The Boeing Company




  • Tuure Laurinolli

    #2
    Re: Python security settings

    Laughlin, Joseph V wrote:[color=blue]
    > rpc_server = SimpleXMLRPCSer ver.SimpleXMLRP CServer(("local host", 3010))[/color]
    [color=blue]
    > When I run this program, I can connect to port 3010 on the localhost,
    > but I can't connect to the port from any other machine (or from the
    > local machine using the machine's hostname). Why is this?[/color]

    You are binding the server to localhost, it shouldn't receive packets
    from any other address than 127.0.0.1 and it's IPv6 counterpart. Bind to
    the interface you are trying to connect to instead.

    Comment

    Working...