Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1012562 // smartBot_findMyExternalURL

JavaX fragment (include)

static S smartBot_findMyExternalURL() {
  S ip = myFirewallIP();
  for (int port = 4678; port <= 4681; port++) {
    S url = "http://" + ip + ":" + port;
    print("Trying " + url);
    pcall-short { if (swic(loadPageWithTimeout(url + "/livecheck", 10000), "Smart Bot"))
      ret url;
    }
  }
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1012562
Snippet name: smartBot_findMyExternalURL
Eternal ID of this version: #1012562/5
Text MD5: f76584b94c0c5b5e3ef50735ffb7650e
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-27 17:37:47
Source code size: 315 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 379 / 415
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)