Hi,

I have problems with rcron. I get an Error, that the API Key is wrong or the IP is not correct. But like you can see, the IP is correct (identical with the IP seen in the Syslog), the API is correct and the setup in rccron.php. It seems I oversee something. Any hints?
Frank


@terra3110

So, we compare the IP address that's listed in the Key info to the $_SERVER['REMOTE_ADDR'] variable. I have a feeling the IP listed in the $_SERVER['REMOTE_ADDR'] variable is not the same as the one listed in the Key info.

Cheers.

I tested it on the Low level by generate an output with all Env Variables:

GET /cgi-bin/showenv
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Environment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
CONTEXT_DOCUMENT_ROOT = /home/www/cgi-bin/support/<br>
CONTEXT_PREFIX = /cgi-bin/<br>
DOCUMENT_ROOT = /home/www/htdocs/support/<br>
GATEWAY_INTERFACE = CGI/1.1<br>
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin<br>
QS_AllConn = 1<br>
QS_ConnectionId = 16136902616872080005778<br>
QS_SrvConn = 1<br>
QUERY_STRING = <br>
REMOTE_ADDR = 192.241.204.184<br>
REMOTE_PORT = 59826<br>
REQUEST_METHOD = GET<br>
REQUEST_SCHEME = http<br>
REQUEST_URI = /cgi-bin/showenv<br>
SCRIPT_FILENAME = /home/www/cgi-bin/support/showenv<br>
SCRIPT_NAME = /cgi-bin/showenv<br>
SERVER_ADDR = 192.241.204.184<br>
SERVER_ADMIN = webmaster@protect.kiwi<br>
SERVER_NAME = support.protect.kiwi<br>
SERVER_PORT = 80<br>
SERVER_PROTOCOL = HTTP/0.9<br>
SERVER_SIGNATURE = <address>Apache/2.4.29 (Ubuntu) Server at support.protect.kiwi Port 80</address>
<br>
SERVER_SOFTWARE = Apache/2.4.29 (Ubuntu)<br>

Like you see, it is the right IP.

Write a Reply...