Get hostport in Lua?

Is there a way to get the Hostport on the server, I need this as multiple instances of the same server will be open at a time and each is identified by its port. I tried to do some looking and all I could find was the ip without the port. I remember doing this a year or 2 ago abut I dont remember exactly what I did to do it. Thank.


Litteraly search every term I could think of on the wiki except IP or Address. I was focusing mainly on the port. Thanks man.