models/oxpspaymorrowoxuser.php
public function getUserPaymorrowIpAddress()
    {
        /** @var  $oUtilsServer oxUtilsServer */
        $oUtilsServer = oxRegistry::get( "oxUtilsServer" );
        $sIpAddress   = $oUtilsServer->getRemoteAddress();

        return strpos( $sIpAddress, ':' ) ? $oUtilsServer->getServerVar( 'REMOTE_ADDR' ) : $sIpAddress;
    }
public function getUserPaymorrowIpAddress()
    {
        /** @var  $oUtilsServer oxUtilsServer */
        $oUtilsServer = oxRegistry::get( "oxUtilsServer" );
        $sIpAddress   = $oUtilsServer->getRemoteAddress();

        return strpos( $sIpAddress, ':' ) ? $oUtilsServer->getServerVar( 'REMOTE_ADDR' ) : $sIpAddress;
    }
public function getUserPaymorrowIpAddress ( ) { /** @var  $oUtilsServer oxUtilsServer */ $ oUtilsServer = oxRegistry :: get ( "oxUtilsServer" ) ; $ sIpAddress = $ oUtilsServer -> getRemoteAddress ( ) ; return strpos ( $ sIpAddress , ':' ) ? $ oUtilsServer -> getServerVar ( 'REMOTE_ADDR' ) : $ sIpAddress ; }
Get client remote IP address.
For IPv6 got from utils, gets value from REMOTE_ADDR variable directly.

@return string
Get client remote IP address . For IPv6 got from utils gets value from REMOTE_ADDR variable directly .