Can't create a HTTP server

I'm trying to create a temporal HTTP server over my local network IP http://192.168.1.3, so I can transfer files to a computer, I can see what is the local IP, but I don't find the way to get connected, using the following code I got the message "can´t connect to host"
NSString *URL = [NSString stringWithFormat:@"http://%@:8080",[self getAddress]];
NSURLRequest *theRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:URL]cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
if ([NSURLConnection canHandleRequest:theRequest])
NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:theRequest delegate:self];
NSString *status;
if (theConnection)
status = @"Connection OK";
else
status = @"Connection Failed";
NSLog(status);
/**Here returns the error message
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
NSString *message = [NSString stringWithFormat:@"CONNECTION FAILED! ERROR - %@ %@",[error localizedDescription],[[error userInfo] objectForKey:NSErrorFailingURLStringKey]];
NSLog(message);
Can some one help me to fix this or tell me how open and close a connection ?
Thank you

When I open any of the those apps, it creates a HTTP server with over 192.168.1.3:8080. In my own app it detects tha IP and return a "Conection OK" message but connection:DidFailWithError gives me the "can't connect to host" message.
When I open Air Sharing on my iPod and at the same time my own app on the simulator I got a succesful connection. So it makes me feel that I do not really know what is the correct command to open a connection.

Similar Messages

  • Where can I download "apache http server plug-in", where apache is on Redhat Linux 7.2

    hi,
    very urgent!
    where can I download "apache http server plug-in", where apache
    web server is on Redhat Linux 7.2.
    in my situation,I want to proxy all requests to weblogic 6.1,which is on win2000.
    thanks
    jy

    Hi,
    You can try using the following approach with +'MatchExpression'+ parameter for the +'VirtualHost'+ configuration, which should solve your problem:
    <VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName << Put your apache server ip-address here>>
    ErrorLog logs/error_log
    <Location */CustomLocationPrefix1** >
    SetHandler weblogic-handler
    +## Select the list of apps/urls for APP1+
    WebLogicCluster 192.168.100.1:7001,192.100.1:7002
    CookieName CUSTOM_JSESSIONID_COOKIE_NAME_1
    Debug ALL
    DebugConfigInfo ON
    WLLogFile C:/wlproxy.log
    </Location>
    <Location */CustomLocationPrefix2** >
    SetHandler weblogic-handler
    +## Select the list of apps/urls for APP2+
    WebLogicCluster 192.168.100.3:7001,192.168.100.4:7002
    CookieName CUSTOM_JSESSIONID_COOKIE_NAME_2
    Debug ALL
    DebugConfigInfo ON
    WLLogFile C:/wlproxy.log
    </Location>
    <Location */CustomLocationPrefix3** >
    SetHandler weblogic-handler
    +## Select the list of apps/urls for APP3+
    WebLogicCluster 192.168.100.5:7001,192.168.100.6:7002
    CookieName CUSTOM_JSESSIONID_COOKIE_NAME_3
    Debug ALL
    DebugConfigInfo ON
    WLLogFile C:/wlproxy.log
    </Location>
    <IfModule mod_weblogic.c>
    +## Combine all the locations for the different web-apps you want to route through apache http server+
    +## (i.e., APP1, APP2, APP3 in this case).+
    WebLogicCluster 192.168.100.1:7001,192.168.100.2:7002,192.168.100.3:7001,192.168.100.4:7002,192.168.100.5:7001,192.168.100.6:7002
    MatchExpression *
    +## The following may not be needed (need to recheck)+
    EnforceBasicConstraints OFF
    </IfModule>
    </VirtualHost>
    Regards,
    Deepak Kerur.
    Edited by: user10231088 on Jul 7, 2011 6:36 PM
    Edited by: user10231088 on Jul 7, 2011 6:36 PM

  • SunONE Web Server 6.1 on linux: can't create a new server

    Hi all
    When we try to create a new server from the Admin server ("Add Server" button), and after fill the form and click OK, we get the following error in the "errors" log file of the admin server:
    [23/Oct/2003:11:25:35] failure (14588): for host 10.95.4.28 trying to POST /https-admserv/bin/install, cgi_scan_headers reports: HTTP4044: the CGI program /opt/SUNWwbsvr/bin/https/admin/bin/install did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other abnormal termination)
    As I told in the subject, web server is installed on a linux (red hat) box
    Is it a bug in the WebServer 6.1? for linux or for solaris too?
    Regards

    Hmmmm, well stick with the 7.2 version and let's see if we can figure this out.
    What version of perl is on the box?
    --jb                                                                                                                                                                                                                                                   

  • Can't start Appache HTTP server with Weblogic Server 8.1.

    We are trying to use the Appache HTTP server with the Weblogic Server 8.1 on HPUX 11i platform.
    For this purpose we use Weblogic 8.1 plug-in for Apache 2.0.50 - mod_wl_20.so shared library.
    When trying to start the Apache server I got the following error:
    /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libcl.2
    /usr/lib/dld.sl: Exec format error
    Syntax error on line 234 of /tsauser5.p302/tsa/crm/tsacla2/Apache_DEV2/conf/httpd.conf:
    Cannot load /tsauser5.p302/tsa/crm/tsacla2/Apache_DEV2/modules/mod_wl_20.so into server: Exec format error
    It looks like plug-in mod_wl_20.so wasn't’t compiled with the –lpthread library.
    Do you know if we can achieve the source of the “mod_wl_20” plug-in and recompile it after that?

    contact support they should be able to help you out.

  • Can I create a linked server to this ODBC datasource (odbc driver by Progress OpenEdge) on Sql Server 2000 ?

    I installed the Progress OpenEdge ODBC driver for 32 bit database on my win7 workstation -- I used odbcad32.exe located at C:\Windows\SysWOW64 to configure the driver for 32 bit applications -- per the screen Shots here and I am able to connect to the datasource
    from Excel Query.
    I am able to connect to this ODBC datasource from Excel Query and see all the tables -- as in the screen shot.  I can also access this datasource from a C# app.
    Question:  if I can connect to this ODBC datasource from Excel -- does this mean I should be able to create a linked server to it?  I tried the following from SSMS Linked Serber Wizard on a Sql Server 2000 (I have used the Linked server wizard
    successfully in the past as well as linking with Tsql SPs).  This will at least create a mock Linked server on the Sql server 2000 (this does not work on sql server 2008 -- I tried), but when I try to view the catalogs -- I get the error in the screen
    shot below.  If the answer to my question is "YES" yes I should be able to create a linked server to this ODBC datasource what is the way to do this?  I added the UserID and Password in the Security tab, but I did not see where to add the
    port (4000).  What do I enter for the Product Name?  Can it be arbitrary or does it have to be something specific?
    Rich P

    Yes, you should be able to set up this as a linked server - from a 32-bit instance of SQL Server. That is, you can't use a 32-bit driver on 64-bit SQL Server. Now, since you have SQL 2000, I assume that this is a 32-bit instance. (But there was a 64-bit
    version for Itanium of SQL 2000.)
    For the Provider string, I would guess that you should enter something like
    Driver={Progress 11.3 OpenEdge Driver}
    just like you do in your application code.
    Basically, in the provider string, you specify your connection string, except that you take out the provider name, which is a separate parameter to sp_addlinkedserver. Since I know nothing about Progress, I can't give any specific details.
    The error message you get is somewhat puzzling, since this refers to SQLOLEDB which is the provider to access an SQL Server instance.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How can we debug Oracle Http Server on AIX.

    Our requirement is to attach a debugger (dbx) to oracle http server on AIX.
    For that purpose we need to start the OHS webserver service that is opmn in a single process mode the way we start Apache webserver by -X option.
    Can anyone help how can we start OHS in single thread.

    user9201760 wrote:
    Hi,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you've updated your profile with a real handle instead of "user9201760".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This would normally include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    Thanks for having included most of the information that is relevent to your question.
    I have installed Oracle Apex 4.1 on Oracle 10g database but I want to configure Oracle HTTP Server on another Server(Microsoft Windows 2008 R2). Here I have placed Apache Tomcat 6.0 version already. Can anyone please tell me how is it possible to install and configure Oracle HTTP Server on Windows 2008 along with Apache Tomcat?Why? Installing OHS and the DB on separate servers will incur additional licensing costs.
    More common confugrations would be to use Apache as a reverse proxy to an OHS+DB server, or Tomcat+APEX Listener with a DB server and not using OHS at all. (Although I understand Tomcat is not an Oracle-supported platform for the APEX Listener. For any questions on this or other Listener-related topics use the {forum:id=858} forum.)

  • Process chains  can be created in Production server?

    Friends,
    I'm new to Process chains. We have 3 servers, Development, Testing and Production.
    I want to know do we need to create process chain in Production server directly or we have to create in Development server and then move it to Test and then in to Production? Please suggest me.
    Joe

    Hello Joe,
    Different people follow different ideas: You can make the chains directly in Prod and maintain them there, or you can also create in Dev and transport them. We maintain them directly in production. This point has been discussed many times in the forums...a quick search should help you get a lot more info.
    Hope this helps...

  • How can I create a portal server authentication user with a batch

    hi,
    I am trying to import users into the portal server emulating the create user procedure as plumtree. What I cannot understand at the moment is which classes are involved in the sequence of creating a user.
    the problem starts from the fact that I have used a synch WS and it works but, being the table a dummy one and the users to be authenticated by the portal server, I couldn't use that synch as a definitive.
    I tryed using plumtree.server.CIPTUser class with no success. could not understand how to actually create the user after setting the parameters to the object.
    Is there any documentation explaining how to create the portal server emulation of create user. this could be usefull for all those cases when there is no central repository of user and passwords.
    thanks
    Mario

    This should get you started.
    IPTUser=IPTSession.GetUsers.Create(iAdminFolderID)
    IPTServerContext=IPTUser.GetInterFaces("IPTServerContext")
    IPTServercontext.Store
    This is a high level implementation. It should get you very close.
    thanks,
    Craig

  • How can I create a web server with Java?

    I was interested in working on a program that runs through it's own port on the server similar to webmin.. Basically I'd like a light-weight no thrills web-server for the base of my program I can tweak it later. How can I do this?

    -I agree! but you dont have to re-invent the
    wheel.....Sometimes it is fun to...You only say that because you are a (lovely) nerd :)I got promoted from a "geek" to a "nerd" :)
    I agree that it is fun to implement application
    servers etc, but you also have to think about the
    cost (if some one else than you is paying for your
    time)I get lots of "paid" free time occasionally. But I haven't got as far as implementing web servers (or application servers).

  • In Oracle 9 Application Server can we create multiple instances???

    Hi I need one help this is regarding to the oracle 9 application server in this can we create the multiple instances??
    my application was already developed and currently it is working with one instance for this i need to create the another one more instance which is same as existing and my application is web application developed in Forms6i and the db is oracle 9i my requirement is to create one more instance what are all the configuration files need to be modified and please give this info ASAP....

    It is still not very clear. What do you mean by creating "one more instance of the same application in the same application server"? By "application" do you mean another instance of OC4J in same Application Server Instance? If yes, you can do that. I mean you can create another OC4J component in same Application Server Instance without doing another installation. Refer this for details:
    http://download.oracle.com/docs/cd/A97329_03/core.902/a92171/config.htm#1010793
    If you are looking to create another Application Server Instance out of same installation/binaries (i.e. Oracle Home) than the answer is no. You can not create multiple Application Server Instances out of one Oracle Home. You will have to do another installation in a different Oracle Home and that's how you will get another Application Server Instance.
    Hope this helps.
    Thanks
    Shail

  • Can Oracle Portal work without Oracle HTTP Server ?.

    Hi,
    We are developing on Oracle Portal 10.1.4.
    We are trying to use IPlanet Web Server instead of Oracle HTTP server. In such a case can Portal run with IPlanet Web server. alone ?.
    Can we eliminate Oracle HTTP Server altogether ?.
    Thanks and Regards,
    Panai.

    Third party HTTP Servers can be used with the OracleAS Proxy Plug-in. I have not done any tests with them however. The documentation states that it will enable you to integrate Sun ONE Web Server Enterprise Edition on UNIX and Windows systems, or the Microsoft Internet Information Server (IIS) on Windows systems.
    Oracle Portal is tightly integrated with Oracle Web Cache. This might limit the usability of the OracleAS Proxy plugin.
    More info is available in the documentation :
    http://download-uk.oracle.com/docs/cd/B32110_01/web.1013/b28948/proxy.htm#sthref1166

  • Oracle HTTP Server 9.0.2

    Can I use Oracle HTTP Server 9.0.2 for HTMLDB 2.0? Is there any issue with that version?
    Thanks.
    Andy

    What does the error_log of the Oracle Apache HTTP server say? This is typically in the $ORACLE_HOME/Apache/Apache/logs directory.
    Weird that a mutex create failed. Without the actual o/s error code that resulted, it is difficult to diagnose the problem. Anything in the Application (or Security) Event Log? Access denied seems to indicate an ACL failure of sorts.
    You could also disable FastCGI - it is not very often used and APEX (mod_plsql) does not need it. The httpd.conf file (in $ORACLE_HOME/Apache/Apache/conf) can be edited to disable FastCGI.

  • HTTP server embedding in RMI

    Hi
    I know that you can embed a simple http server in to RMI so that it can send and receive remote classes. (my refrence is to the use of classFileServer.java and ClassServer.java)
    I was wandering if somebody could direct me to an tutorial or provide me with some code example in order to eplain how it works and can be embedded into an simple rmi example.
    Thank you
    Bart

    you don't need a server if you are just using a remote
    object
    however, there are many times where you may want to
    serve class files via web server. if that's the case,
    do this:
    install apache, it's free and it's the best, and if
    you're on windows, the installation is a breeze
    next, go to the docroot folder of apache (where you
    would normally store web pages), create a directory
    called classes and put your classes in there. Then you
    can access any class by doing this
    www.myweb.com/classes/MyClass.class
    very simple stuffSorry ,but thats not what i was intrested.
    Although thanks for the insight.
    My refrence was to the ClassFileServer.java and ClassServer.java that allow classes to be sent between that JVM's. In the readme file that came with these java files, it said that you can implement these classes inside your RMI code.
    My question is does anybody know how to implement these classes inside the RMI code ??
    Thanks
    Bart

  • Java - HTTP Server Related

    Hi all
    My reqrmnts are :
    1) Want to create an HTTP Server
    2) Upload (xml) files into the HTTP server
    3) Download these files, if needed, based on some argument
    What are the steps to follow? Apache to be configured?
    How do i configure Apache with Java?
    After that, how do i send files to this Server..and also retrieve..
    Is it necessary to use Servlet/JSP...can i do this with core java itself...?
    Please give any valuable reference sites/guidelines..
    Please help..

    1 - Read about how the http protocol works.
    1) Want to create an HTTP Server
    2) Upload (xml) files into the HTTP server
    3) Download these files, if needed, based on some argument2 - So what exactly do you want? To configure Apache or to develop an HTTP web server?
    What are the steps to follow? Apache to be configured?3 - You need an application server instead, look at tomcat.
    How do i configure Apache with Java?MeTitus

  • HTTP Server is not currently supported with Solaris 10

    I am having a problem to start the HTTP Server on Solaris 10 (I am installing HTTP Server as part of HTMLDB installation on Solaris 10).
    I had a problem to install it at first, however I've found on 'AskTom' that unsetting ORA_NLS33 helps and it did. Now I can't start the HTTP server and I've found on metalink that 'HTTP Server is not currently supported with Solaris 10, this is targeted for Q2CY05'.
    Has this been fixed yet?
    Thank you for your time.
    DanielD

    Hi james,
    I have checked the log file but i am unable to find what to do next.
    I am giving the small piece of content of the log file. The following messages are repeating again and again...
    Log content:-
    07/09/23 17:20:36 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:22:26 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:22:30 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:24:40 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:24:44 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:26:36 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:26:42 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:28:57 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd
    07/09/23 17:29:01 Start process
    /dev011/oracle/product/10.1.3.1/OracleAS_1/Apache/Apache/bin/apachectl startssl: execing httpd

Maybe you are looking for

  • Charter email with Snow Peopard 10.6.2

    I recently switched my internet provider to Charter. I cannot receive emails from them at all. I can send messages with no problems. Every time I try to get my mail this is the message I get. "The mail server denied access to the account "charter.net

  • DME file after unicode conversion

    Hi gurus! we have a problem with DME visualization after we passed to unicode system. if we want to create new DME with a ZF110 (copy of F110 ) the DME have incorrect character if we try to see it in transaction FDTA or in ZF110. i tryed with paramet

  • How do I unmerge mine and my husband's contacts on our iphones?

    Mine and my husband's contact lists are merged. If I make a change to a contact it changes it on his phone too. How can we get back our original contact lists and keep them seperate?

  • Bring Back the TX!

    The TX is exactly what I need. I have been a happy customer of the TX since it first came out. My one and only complaint is that the touchscreen goes bad quickly. If you fixed that, this is the only device I ever want to carry! With the Outside the B

  • Speed dial tiles blank, untitled, click and they go to site I loaded

    all the tiles in group one are titled and contain pictures of the sites I loaded, only one in group two does. If I click on the blank tiles I loaded they will go to the correct site I set, but to know which site lives there is hard without pictures.