1 | static S smartBot_findMyExternalURL() { |
2 | S ip = myFirewallIP(); |
3 | for (int port = 4678; port <= 4681; port++) { |
4 | S url = "http://" + ip + ":" + port; |
5 | print("Trying " + url); |
6 | pcall-short { if (swic(loadPageWithTimeout(url + "/livecheck", 10000), "Smart Bot")) |
7 | ret url; |
8 | } |
9 | } |
10 | null; |
11 | } |
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: | 380 / 416 |
Version history: | 4 change(s) |
Referenced in: | [show references] |