• tomomo

    @mikael
    123.123.123.123 is dummy ip address.
    ssh username and password is dummy.

    from sshtunnel import SSHTunnelForwarder
    import ui
    
    with SSHTunnelForwarder(
        'serveripaddress',
        ssh_username='user',
        ssh_password='pass',
        remote_bind_address=('127.0.0.1',80),
        local_bind_address=('127.0.0.1',80)
    ) as server:
        wv = ui.WebView()
        wv.load_url('http://127.0.0.1')
        #wv.load_url('https://www.google.co.jp')
        wv.present('panel')
    

    I also put apache in the jump server for testing.

    I tried to change the source code, but I was logged in with ssh.However, the ssh session seems to be closed immediately and the process will not continue.

    posted in Pythonista read more
  • tomomo

    from sshtunnel import SSHTunnelForwarder
    import ui
    
    server = SSHTunnelForwarder(
        '123.123.123.123',
        ssh_username='user',
        ssh_password='pass',
        remote_bind_address=('127.0.0.1',3128)
    )
    server.start()
    
    main = ui.ScrollView(frame=(0, 0, 375, 812))
    main.content_size = (375, 812)
    wv = ui.WebView(frame=(0, 0, *main.content_size))
    wv.load_url('http://10.10.10.254')
    main.add_subview(wv)
    main.present('panel')
    

    posted in Pythonista read more
  • tomomo

    @mikael
    Tried sshtunnel.
    I was connected to the jump server, but I could not access the site via the jump server.

    posted in Pythonista read more
  • tomomo

    I also want to access the web site via the jump server in addition to the intranet access.

    posted in Pythonista read more
  • tomomo

    @mikael
    Yes, I would like to access the sshtunnel or proxy on the jump server to connect to the intranet.

    posted in Pythonista read more
  • tomomo

    Is it possible to use proxy or sshtunnel (Dynamic Port Forwarding) in uiwebview?

    posted in Pythonista read more
  • tomomo

    @cvp Thank you for the several amendments.
    I will try my best to change the contents of the alert dynamically.

    posted in Pythonista read more
  • tomomo

    @cvp I will try it.

    posted in Pythonista read more
  • tomomo

    Thank you.
    It ’s full.

    posted in Pythonista read more
  • tomomo

    Since you cannot press the OK button, you can only delete the app from the task.

    How can I use Pythonista 3.3 beta?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!