Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: Calling webservices by IP address

  1. #11
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,771
    Hi Simon,

    When you are using IIS you omit the :8001.

    “it used to work” please explain what you mean by that.

    Have you tried accessing your app on your development machine from an iPad in the same WiFi network? Try that first.

    Is your server on an IP that I can access.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #12
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,771
    You can use weinre to debug mobile devices from windows.
    https://people.apache.org/~pmuellr/w...test/Home.html

    As explained in the above weinre doc, you need to insert a script tag into your Lianja app in order to debug it with weinre server running on your windows machine. You would insert the weinre script tag in your Lianja app inside the “include in HTML head” app attribute.
    Last edited by barrymavin; 2019-11-13 at 19:19.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #13
    Senior Member
    Join Date
    Jan 2014
    Posts
    262
    Thanks Barry

    By "it used to work" we mean that upto about a month ago we could log to the external IP production server using apple/ios products :8001 but now we cannot.

    Thanks for the info about the port 8001. How do we get LCS to listen to port 443? How does it know?

    We cannot use IIS at the moment as it is completely broken following installation of https binding. Logging in using 8001 is broken too for some reason as when we fire up web page, enter credentials, pick your app and then it is just a white screen. Hopefully once the IIS is fixed that will be too.

    How does LCS know how to behave now as it has potentially 2 start methods?

    How do we "access your app on your development machine from an iPad in the same WiFi network"? We've tried typing in the localhost url that the dev produces when it produces its index file and localhost web version but that doesn't work.


    Thanks

    Simon

  4. #14
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,771
    Hi Simon,

    I do not believe you need to use IIS to run your app. You need to get your network infrastructure sorted it.

    You first need to verify that if runs locally.

    Do you know how to determine the IP address of your PC?

    Once you have determined that lets say it is 192.168.1.xxx and your ipad is connected to the same wifi access point and it has IP address 192.168.1.yyy then in the browser address bar on the ipad type:

    http://192.168.1.xxx:8001

    Get that working first.

    Regarding your questions about IIS and http protocols.

    1. LCS does not need to and cannot listen on port 443
    2. IIS listens on port 80 and port 443.
    3. The Lianja ISAPI extension acts as a proxy and causes IIS to forward all http(s) requests to LCS on port 8001. If LCS cannot handle the request it tells IIS and it then passes the request down its chain of extensions.

    You can't just enable port 443 on IIS you must install an SSL certificate. It is highly possible that iOS will reject a self signed certificate.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #15
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,099
    Hi Simon,

    Do we really have to go and buy a (absurdly expensive) Mac just to get it to load? It used to work. Anything else it could be?
    For some testing I installed iOS in a virtual machine.

  6. #16
    Senior Member
    Join Date
    Jan 2014
    Posts
    262
    Hi Barry

    Thanks for clarification - will give that a go.

    Once the Lianja ISAPI extension is instaled, can the same server also still run other web services? Or must the LCS have its own box?

    We have a data collection webservice on the same server listening on port 80 which expects an xml stream.

    Cheers

    Simon

  7. #17
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,771
    Hi Simon,

    As I explained, IIS proxies into the Lianja ISAPI extension. If it can't handle the file extension to the file does not exist in the WWWROOT it will pass it back to IIS. This is how IIS extensions operate.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  8. #18
    Senior Member
    Join Date
    Jan 2014
    Posts
    262
    Hi Barry

    OK - making some progress.

    Calling the app using the 192.168.10.xxx:8001 ie localhost does work fine from an iPad.


    Brand new testing server up with out of the box everything. Not toutched IIS yet.

    When we call the new server using http:// we notice 2 things

    1. When calling the app from a non ios browser, adding a new record does not change the action bar. Normally when a record is added ie by pressing the + button, the action bar changes to only show the save and undo symbols. It currently does not change and so we cannot save the record or get out of the edit.

    We just get "please save or cancel the edit first". Only option is to end the browser session.

    We will send you the live IP address by emai so hopefully you can see/reproduce the issue.


    2. iPad / iPhone still will not get past the Lianja logon credentials on this server either.

    We are having all the https & certifictes etc installed tomorrow so we will be able to test the iPad https:// theory.

    Thanks

    Simon

  9. #19
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,948
    Hi Simon,

    You should also be able to call your app through IIS on port 80, from your Network. That's assuming you haven't implemented rules prohibiting non-HTTPS on IIS, or are redirecting 80 to 443 on IIS. Both of the latter are good actions to take, btw, as unsecured http is rightly considered dangerous.

    Hank
    Last edited by HankFay; 2019-11-17 at 15:25.

  10. #20
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,771
    What have you installed on your testing server. LCS or LAB? What versions? The LCS needs to match the LAB you have installed for development. How did you install this on the testing server.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us