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

5
LINES

< > BotCompany Repo | #1008737 // directClientIP - for web bots, returns just our direct client

JavaX fragment (include)

static S directClientIP() {
  O session = call(getMainBot(), "getSession");
  Map headers = cast call(session, "getHeaders");
  ret (S) headers.get("remote-addr");
}

Author comment

Began life as a copy of #1002945

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: #1008737
Snippet name: directClientIP - for web bots, returns just our direct client
Eternal ID of this version: #1008737/3
Text MD5: 36a1ec46a8389ce35aa9a332a29788c9
Author: stefan
Category: eleu / javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-31 14:02:53
Source code size: 169 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 563 / 614
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)