XMLSocket to localhost problem

Hello!
Doe anyone have experience with XMLSockets that have to connect to the localhost (or 127.0.0.1)?
My flash application can connect to all other servers but not to the server the flash app resides on.
The server accepts the socket but in flash the onConnect event has "false" as parameter. If I ignore this and start sending anyway, sometimes the data is send to the server.
I run windows CE6.0 R3 with flash lite 3.1.
Any Idea's?
Thanks,
John.

Hi,
don't know if it helps still, but i am using XMLSocket on Symbian: my FlashLite code accesses an natice C++ http server, using XMLSOckets.
It works quite well, however i had some small tunings to do:
* XML form (the one which is sent over to the server) has to terminate by '\0'. My code is adding an addtioanla '\0\ at the end, both on the FL code and on the server code
* Of course, you have to publish your FL as "netwrok access"
* .... and also to solve all the security problems (i.e. either crossdomain, or using Trusted subdir).
Voila, not sure how much of ti applies to your plateform !
Jacques.

Similar Messages

  • Can't fix wamp 404 LocalHost problem, have all details, help please!

    I've got both Apache services running with my XP WAMP setup (with Wordpress installed in C:\wordpress). The WAMP icon turns to green when I click on start WampServer. If I click on the Localhost option, I get the 'It works!' response every time, no problem.
    When I click on phpMyAdmin option, however, I always get the dreaded '404 Not Found' error message. My efforts via YouTube videos regarding this problem helped me get rid of the hash tag in the 'mod_rewrite' line of the htpd.conf file. I can't seem to get any further via the YouTube videos. Hate to be a haunt, but can anyone help me with this one? WAMP is installed in my C:\wamp folder, if that's helpful.
    THANK YOU!

    Your code looks fine. Unless you actually made a typo in the URL I can't explain this problem. To verify this I even copied your web.xml and the SimpleServlet without any changes to my playground environment and it ran just flawlessly at http://localhost:8080/playground/servlets/HelloWorld
    To exclude things, have you tried another applicationserver (Tomcat 6? Glassfish? Jetty?) or maybe another OS?

  • Localhost problems, firefox cant open localhost addresses?

    Hi,
    I really got sick of Chrome's data robbery. Nowadays, I switched back to FF and I cannot believe to this problem. FF cannot open local weblogic domain after restart. I have to restart FF, then everything fine. It repeats for my every weblogic restart.
    WebLogic address --> http://localhost:7001/console/
    Tried this, but still no access --> http://localhost:7001/console/login/LoginForm.jsp
    When I tried on Chrome and IE, everything is fine, and the console is accessible.
    Another problem is, FF adds www and .com extensions to the local addresses, I've fixed this by manual configuration on about:config. By the way, this was also a nightmare and primitive.
    FF Version: 35.0
    Error Page:
    Unable to connect
    Firefox can't establish a connection to the server at localhost:7001.
    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    ''guigs2 [[#answer-684452|said]]''
    <blockquote>
    The best place to start with this are these troubleshooting steps:
    *[http://kb.mozillazine.org/Error_loading_any_website]
    You may want to review your hosts file for entries other than the localhost. If you make changes to your local host file, please be sure to flush the dns to avoid connection issues.
    Are you using a proxy? The default for a proxy is to let the localhost bypass the proxy. The connection to the local host can be terminated as well.
    </blockquote>
    As I said before, when I restart the FF, everything is fine. No proxy, no any custom network configuration. I'm using FF as default installation except "www.com" configuration.

  • SCP and Localhost Problems

    I have two problems that may or may not be related. The first is trying to use scp from the command line. It used to work fine, but now when I try it, I get prompted for the remote password, then the date gets displayed, and that's it. No file transfer happens. An example run looks like this:
    [12:22 PM][~]$scp [email protected]:boolean/programs/btbs.pl .
    [email protected]'s password:
    Mon Nov 21 12:20:39 EST 2005
    [12:22 PM][~]$
    The second problem I have is trying to user a web browser to connect to localhost. I have PHP installed on my system and am running the apache web server. It worked fine for a while, but now when I try to view a PHP page on my machine, the browser tells me it cannot connect to the server. An example looks like this:
    Safari can’t open the page “http://127.0.0.1/~user/index.php” because it could not connect to the server “127.0.0.1”.
    Any input would be much appreciated.
    Thanks

    Just some wild guesses:
    The problem with scp may be due to your terminal emulation.
    With regard to localhost, you might check whether web access to your computer has somehow been turned off.
    Please excuse, if this is all nonsense.

  • Using localhost problem.

    Hi,
    When I installed Oracle and Application Express, my laptop was connected to my home wireless network. I built an application using Application Express and when it was time to demo the application I did not have network connection as a result I could not run the applciation. It looks like the application is dependent on IP Address. What changes I need to do so I can run my application using localhost so my application is not dependent on being connected to my home network. The only way I can connect only using the address http://192.168.1.117:7778/pls/htmldb. I like to use the address http://localhost:7778/pls/htmldb without being connected to any network.
    Thanks,
    Bashar

    I tried to use 127.0.0.1 when I was disconnected and it did not work. I checked the host file and it the correct entry for 127.0.0.1. When type the URL now I get the message
    Service Temporarily Unavailable
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
    Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at 192.168.1.117 Port 7778
    When I type http://localhost:7778/ the appache site loads no problem.

  • Determining IP address of localhost (Problem)

    The below code outputs this on my Windows XP machine:
    main Local IP Address : 192.168.1.100
    main Local hostname : equus
    alt Local IP Address : 127.0.0.1
    alt Local hostname : localhost
    That is all correct, and then I run the same code on my RH9 linux box and I get this:
    main Local IP Address : 127.0.0.1
    main Local hostname : proliant
    Any ideas why it isn't getting the local IP address that it should be?
    import java.net.*;
    public class WhoAmI {
         //Tells you the domain name and IP of the machine you are running.
         public static void main(String[] args) {
              try {
                   InetAddress localaddr = InetAddress.getLocalHost();
                   System.out.println(
                        "main Local IP Address : " + localaddr.getHostAddress());
                   System.out.println(
                        "main Local hostname : " + localaddr.getHostName());
                   System.out.println();
                   InetAddress[] localaddrs = InetAddress.getAllByName("localhost");
                   for (int i = 0; i < localaddrs.length; i++) {
                        if (!localaddrs.equals(localaddr)) {
                             System.out.println(
                                  "alt Local IP Address : "
                                       + localaddrs[i].getHostAddress());
                             System.out.println(
                                  "alt Local hostname : "
                                       + localaddrs[i].getHostName());
                             System.out.println();
              } catch (UnknownHostException e) {
                   System.err.println("Can't detect localhost : " + e);

    if I had one running on a different LAN
    and multicast it to the internet and the other picked
    it up I wonder what the DatagramPacket sender IP would
    be marked as? The WAN address of that specific senders
    LAN with some sort of additional info to specify that
    particular PC in the LAN?Very good question. I'm assuming that you mean that the LANs are connected to the Internet via a router that does network address translation (eg, a Linksys router on a home network)?
    If that's the case, then the packet you receive would have the WAN address of the router. And to send packets back, you'd have to configure the router to pass through UDP packets on the particular port to the desired destination host.
    Ugly, no?

  • Localhost problem..

    The reason why I can't connect to using testing servers in
    dreamweaver 8 is because I didn't set up my IIS 6.0 correctly.. and
    whenever I type in my web browser the
    http://localhost/ it shows that I have
    a dns error.. Please help! and when I access the IIS 6 manager, it
    says that I can't add a computer because my IIS verions is lower
    than 4?! (but I have IIS 6.0 installed) How do we configure
    this?

    criticalx wrote:
    > The reason why I can't connect to using testing servers
    in dreamweaver 8 is
    > because I didn't set up my IIS 6.0 correctly..
    And yet in another thread, you say that you have installed
    apache2triad.
    Which do you plan to use: IIS or apache2triad? Apache2triad
    installs the
    Apache 2 web server. It's perfectly possible to run Apache
    and IIS
    simultaneously on the same computer, but they must be
    configured to
    listen on different ports.
    Do you need both Apache and IIS? You need IIS to develop ASP
    and/or
    ASP.NET, which Apache doesn't support. Apache is better for
    PHP, but you
    can also support PHP on IIS.
    Unless you have a strong need for both Apache and IIS, you
    will probably
    be better off uninstalling (or at least temporarily
    disabling) one of them.
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • RMI localhost problem

    I specifiy RMI lookups to use 127.0.0.1 however for some reason if I pull out my network connection the lookup fails with the Error due to the fact that no connection can be made to the IP address of the machine and not 127.0.0.1
    How can I ensure that 127.0.0.1 is used so that RMI lookups do not fail when the netwrok is down?

    By default it will try to connect to the local host..
    try to use this
    -Djava.rmi.server.hostname=127.0.0.1
    Krishna

  • Problem with Sessions in JSP

    Hi,
    I am working on a JSP based website, where I am facing problem with sessions. The user is asked to login by providing her id and password. If found correct, a bean is created and populated with all her details and placed in session scope. I plan to use the information stored in the bean on other related pages until she logs out.
    <jsp:useBean id="validUser" scope="session" class="UserBean" >
    <c:set target="${validUser}" property="userId" value="${fn:trim(dbValues.UserId)}" />
    <c:set target="${validUser}" property="userName" value="${fn:trim(dbValues.UserName)}" />
    </jsp:useBean>
    <c:redirect url="userHome.jsp" /> The user is presented her homepage - 'userHome.jsp', where she can find various links, like 'Update Profile', 'Pay Registration Fees', 'Book Room' etc. The information stored in the bean is available on 'userHome.jsp'page.
    <A HREF='userHome.jsp'>Home</A>
    <A HREF='editPersonal.jsp'>Update Profile</A>
    <A HREF='registrationFee.jsp'>Pay Registration Fees</A>
    <A HREF='bookRoom.jsp'>Book Room</A>
    <A HREF='logout.jsp'>Logout</A> The problems are:
    1. Whenever user clicks on any of the above mentioned links and moves to any page, the bean comes out as null.
    <%-- Verify that the user is logged in --%>
    <c:if test="${validUser == null}">
    <jsp:forward page="loginForm.jsp">
    <jsp:param name="origURL" value="${pageContext.request.requestURL}" />
    <jsp:param name="errorMsg" value="You must be logged in to access this site." />
    </jsp:forward>
    </c:if> 2. The URL shows an additional jsessionid, which my client doesn't want to see.
    3. On every click on any link, the value of this jsessionid changes.
    What I presume, when I am clicking on different links, my session changes, and so I am seeing a different jsessionid. And since session is changing, therefore the bean is not available in a different session.
    All this works fine with localhost, problem comes into picture, when I upload my pages to the server.
    Puzzled, can anyone help, where am I going wrong? Let me add here, I am new to JSP and hence don't have much resources with me.

    There are several ways sessions can be exchanged between the browser and the server in a j2ee web application.
    1. The default is through cookies. However when the client does not accept cookies, the server appends the session id to the url.
    2. Some servers also facilitate session information exchange using session id in the url even if the client does accept cookies. This is usually ahieved through a setting in some server configuration file.
    You will have to find out why the server in your application is appending the session id to the url.
    Whatever be the case, the server should be able to look up the session from the incoming request (be it from the session id in the url or a session cookie).
    When session information is exchanged through the JSESSIONID in the url, you should ensure that each and every url that goes to the server has this input parameter. To do that all links and form post urls in your servlet/jsp should be treated with a call to encodeURL().
    For example, in a jsp
       <a href = "<%=response.encodeURL("/nextJsp.jsp")%>">Click here </a>
    or
       <form action = "<%=response.encodeURL("/nextJsp.jsp")%>">
       </form>etc.
    ram.

  • About XMLSocket reconnection

    hello: I got a question about XMLSocket. The problem is this:
    if the connection is established to the server then it is done. if
    the connection is not successfully established then it will retry
    the connection 10 seconds later.
    here is my code:
    class .... {
    public function Connect():Void {
    var _isConnected:Boolean = _conn.connect(_hostIP,
    _hostPort);
    _conn.onConnect = function(_isConnected:Boolean):Void {
    if (_isConnected) {
    _conn.send("Hello there.");
    // MessageModule();
    } else {
    trace("No connection.");
    // Wait(); ???
    // Reconnect(); ???
    in my code I try to send "Hello there if it succeeds" while I
    still can't figure out how can I implement the //Wait() and
    //reconnect part. please give me some help. Thanks!!!!!

    crossdomain.xml:
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <!--- 
    this should be in the root and allows all policy files but gives access to no domains.
    a policy file (eg, crossdomain2.xml) in a subdirectory with allow-access-from allows domain access to
    the directory, and dependent subdirectories, that contain crossdomain2.xml
    -->
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    </cross-domain-policy>
    crossdomain2.xml:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <!--- 
    this policy file (eg, crossdomain2.xml) is in a directory it will allow access to that directory and its subdirectories
    IF there's a root policy file  (eg, crossdomain.xml) allowing cross-domain-policies
    -->
    <cross-domain-policy>
    <allow-access-from domain="www.kglad.com" />
    </cross-domain-policy>

  • Project Spartan and localhost

    I can't surf to localhost (or 127.0.0.1) in Project Spartan while in IE I can.
    Is there a reason for that?
    Will it be fixed in future versions?
    Thanks!

    Heya,
    Much searching on web and I came up with for me at least is a fix for localhost error. The following needs to be run with an admin command prompt and once ok'd it seems to be a fix for my localhost problem.
    CheckNetIsolation LoopbackExempt -a -n=Microsoft.Windows.Spartan_cw5n1h2txyewy
    I ran this once and now am able to open media browser at least with no problem with Spartan as default browser.
    Good luck and hope it helps all with this problem
    Dragon

  • PHP website displays on web server but only text shows on local testing server

    Hi,  I am not a PHP programmer.
    I tried to get the testing server set up in the DW site definition area but was unsuccessful so I am back tracking to first make sure I have a working testing server. So, here is the info:
    I took on a new client with a simple PHP site, without any databases.
    The site is up and running on the web.
    I would like to eventually get it running on my local machine to integrate editable regions for use with Adobe Contribute.
    I have latest version of WAMP installed running Apache version 2.2.11 and PHP version 5.3.0
    I created a directory in the WAMP "www" project directory and it shows up  like it's supposed to when I browse to "localhost"
    Problem:
    The home page of website displays text but no, images, styles, footer, header, nav links, etc.
    Here is the code for the home page:
                                                                                                                                                                Welcome                         This is the content area. This is the content area. This is the content area.                                                                        
    Any help would be greatly appreciated. I have spent many hours on this.
    Regards

    Hi,
    Not sure what you have going on there. One thing I would try is to enclose all your php code within <?php code here ?> not <? code here ?>
    Also ADDT does not work fully with php 5.3.0 as this may also be your error. When you say it only shows text do you mean dynamic text values or just text that is not dynamic?

  • Firefox profile got corrupted? can't run cgi scripts anymore

    Something happened recently that hosed my ability to run cgi scripts from my firefox profile.  If I browse to my local webserver at http://localhost/blah I was able to run a cgi script.  Now for some reason, firefox asks me if to save the script rather than running it.
    Opening monitorix.cgi
    You have chosen to open monitorix.cgi
    which is a: BIN file
    from: http://localhost
    Would you like to save this file?
    [Cancel] [Save File]
    If I load firefox with a fresh profile, I am able to run the cgi script with no such problems.  I don't want to create a new profile to solve this.  Does anyone know which setting controls this behavior so I can fix it?
    Thanks!
    EDIT: this is too weird.  If I browse to http://reborn/blah (reborn is the hostname of my local PC) rather than http://localhost/blah, the script runs just fine!  What's going on?  Again, this localhost problem only affect my user's firefox profile.
    Last edited by graysky (2010-02-06 19:52:44)

    Same thing seems to be true when I try connecting to other PC's on my LAN.  If I use their hostname I get nothing, if I use their IP it works.
    Browsing to --> http://mars/http will result in firefox trying to connect "transferring data from mars..." and it hangs as such forever.
    Browsing to --> http://192.168.1.101 will result in the page loading perfectly.
    If I repeat the above using a new profile within firefox, everything works!  I'm at a loss to explain it.
    $ cat /etc/hosts
    127.0.0.1 localhost.localdomain localhost reborn
    192.168.0.101 mars
    Last edited by graysky (2010-02-06 19:56:50)

  • Different Behaviour within Flex and on Browser

    Hi,
    I am using an XMLsocket in my problem (client and server on
    the same machine).
    As server I have modified slightly the java example from the
    help (server on port 5050).
    When I run my program within Flex (run button), program is
    run, it connects and accepts
    data from the server. When I try to run the program outside
    flex (run the html in the browser),
    then no connection seems to be made to the java program.
    Are any settings of the browser (firefox) configured
    differently when running through Flex?
    server part:
    socket = new ServerSocket(port);
    incoming = socket.accept();
    readerIn = new BufferedReader(new
    InputStreamReader(incoming.getInputStream()));
    // open up standard input
    BufferedReader br = new BufferedReader(new
    InputStreamReader(System.in));
    printOut = new PrintStream(incoming.getOutputStream());
    printOut.println("Enter EXIT to exit.\r\0");
    out("Enter EXIT to exit.\r");
    boolean done = false;
    while (!done)
    //String str = readerIn.readLine();
    String str = br.readLine();
    out("Echo: " + str);
    if(str.trim().equals("EXIT"))
    done = true;
    ====================================
    when run outside flex, surprisingly I can see the:
    "Enter EXIT to exit" on the screen but whenever i type
    something
    it does not appear on the Flex client. This works as it is
    supposed to,
    when executing within Flex...
    thanks

    When you say run from the browser.. is the request served by
    a web server?
    You may be running into crossdomain issues in the 2nd case. I
    would suggest that you print the input stream data from the XML
    Socket to see if its sending a request for crossdomain.xml? If that
    is the case, you should first send the response with the policy
    file back so that subsequent calls succeed.
    Thanks,
    Gaurav Jain
    Flex SDK Team

  • XmlSocket.onXML and xmlSocket.onData problem

    Hi,
    I am having a problem with reading information that is being passed from a C# server. When I use xmlSocket.onXML, the xml object being passed from the server does not have any elements at all. When I use xmlSockt.onData, I am able to get the following output with tace:
    <?xml version="1.0"?>
    <Packet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <UserID>5555</UserID>
      <UserName>Success</UserName>
      <Operation>RefreshUsers</Operation>
    </Packet>
    However, when I check the string variable that I used to store this string in debug mode, the value of the string is "". And when I try to create an XML object using var my_xml:XML = new XML(srcstring); I get the same problem as when I used the xmlSocket.onXML method. The xml object my_xml contains no elements at all.
    Can anyone help me out on this? Thank you.

    So I switched from XMLSocket to just plain Socket.
    I have this now:
      var sock:Socket = new Socket();
                sock.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
                sock.connect("localhost", 7778);
                sock.writeUTFBytes(xmlMsg);
                sock.flush();
    But nothing gets transmitted unless I close the Flex app.
    I don't get this. What seems to be a problem?
    I read an API docs twice and it says that writeUTFBytes (or any other write methods) are just putting stuff in a buffer
    the flush() is the one that signals that the buffer content needs to be sent.
    I'm doing just that and still I get nothing on the other side unless I close the Flex app.
    Any suggestion?
    Thanks
    Greg

Maybe you are looking for

  • HOW TO PIN OR "STICKY" A BUTTON IN PLACE ON A RESPONSIVE PAGE?!!!!

    Hi Obviously there SHOULD BE a toggle switch on the properties panel to toggle an element to stay in the same place while scrolling or similar like Muse features.  This doesn't function properly when using the responsive options on the stage: sym.$("

  • Price is not transferred from materail contract to po

    Dear Experts,                     When i create a service po , the price is not transferred from material contract to po , for material po it is working fine.In debugging i got to know that it is picking up purchase requisitions package number , and

  • Seeburger installation

    Dear all, I'm installing Seeburger in order to do the mapping between our GTS system and the custom authority. Seeburger installer is asking "Enter the code for the articles to install and confirm each input with enter" Do you have any idea where to

  • My updating procedure for a major update

    I never run a major update right away. I always wait at least a week or so to see what develops. Most problems I see here are the result either of a specific incompatibility with a third party application or plug-in, or some pre-existing software or

  • Aperture so slow

    hi and sorry if this is answered somewhere else - can't find it if it is i'm thinking of changing my iMac as i find Aperture slow and when CS2 is open at the same time [editing] it almost grinds to a halt so my question is... i currently run a lot of