2

I try to make a small iOS App which should open a single page app and then shows the content of a web site which is only accessible through an IP with Port

The code works with a standard URL like https://www.google.com but not with e.g. https://565.346.49.86:10000.

import UIKit
import WebKit

class ViewController: UIViewController {

    @IBOutlet weak var webView: WKWebView!

    override func viewDidLoad() {
        super.viewDidLoad()

        let url = URL(string: "https://***.***.4*.*6:10000")
        let request = URLRequest(url: url!)

        webView.load(request)
    }
}

I expect a login form of my home server.

D. Iseli
  • 61
  • 8
  • did you test your URL from a browser on the same machine to verify the IP address +port are valid and have a server listening? – m0bl Sep 16 '19 at 19:37
  • @m0bl: yes I did. I can open the URL with the port with Safari on any device. – D. Iseli Sep 16 '19 at 19:47

1 Answers1

-1

It works for me when make the URL like this https://565.346.49.86:10000/