The problem is this is not well defined. Your computer may have multiple network cards and multiple IP addresses. When a request arrives from outside the web server knows which IP is being used but when a function called by cron, it would not know which IP to pick. In fact you can cron even if you do not have any IP address at all.
On Jan 7, 5:11 pm, Paul <[email protected]> wrote: > is there a way to get the host ip info inside a function that has been > called from a cron script? request.env.http_host doesn't seem to work > (request doesn't make much sense when called from a cron script). > > im trying to use xmlrpc communication between two apps, but without > hard coding the URL and using 'localhost' or '127.0.0.1' doesn't seem > to work either.
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

