contrib / query_ip_port.pre

Edit on Github

int query_ip_port(void object);

object defaults to this_player()

returns local_port of connection or 0 if object not interactive