How to get serverport on BP?

Is there a BP element which provides the current server port… server port in the context of being the server and want to know the port of myself?

you can’t do it in BP only (or 4.13 introduced a new node) … You have to code it in C++, it’s easybut I don’t have the code here …

yea ok, on other posts i found some like the “GetWorld()” … but i cant find a global function like this, there is just one on the AActor::GetWorld()… how this is to be used? Or on which actor?