A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: upnp and bonjour

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    5

    upnp and bonjour

    Hi All
    I'm trying to find out if flash can do a network broadcast to find zeroconfig services eg PLEX via bonjour.

    i was thinking of using a XMLSocket but my test so far fail
    Actionscript Code:
    server = new XMLSocket();

    server.onConnect=function(success) {
        if (success) {
            trace("Successful connection to the server");
        } else {
            trace("Unsuccessful connection to the server");
        }
    }

    server.onClose = function() {
        trace("The client has been disconnected");
    }

    XMLSocket.prototype.onData = function(msg)
    {
        trace("MSG: " + msg)
    }
    //broadcast address for 192.168.1.1/255.255.255.0
    server.connect("192.168.1.255", 5354);
    I could be doing this completely wrong as i'm new to the flash thing.

    i have some limitation as to what i get to program in as i'm trying to build a app for the popcorn hour C-200 and my app here

    any help would be greatly appreciated

  2. #2
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    971
    I think it has something to do with the ip. 192.168 is an internal ip, the ip that your router assigns to your computer. You have to use the external ip address , you can find it here http://ipchicken.com Tell if it works.

  3. #3
    Junior Member
    Join Date
    Apr 2012
    Posts
    5
    That’s correct in trying to find the services within my local/home network (192.168.1.1 - 192.168.1.254)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center