jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0

No access for CLIENT_IP at line 238 currency.php

8 years 8 months ago #2382 by dgbaker
So we have money all setup and licensed and working for the most part. Except, when a client in their viewer clicks to get their balance we see the following in the logs. The client gets the message cannot buy now.


2016-02-26 10:50:13 Request coming from CLIENT_IP


########## 26.02.2016 10:50:13 ##### input ##########
'<?xml version="1.0"?><methodCall><methodName>getCurrencyQuote</methodName><params><param><value><struct><member><name>agentId</name><value><string>4760d5c8-a599-11e4-9866-00163e007790</string></value></member><member><name>secureSessionId</name><value><string>1fb7d20b-b74b-4cd2-b24e-49b3e305e64e</string></value></member><member><name>currencyBuy</name><value><int>2000</int></value></member></struct></value></param></params></methodCall>'

2016-02-26 10:50:13 No access for CLIENT_IP at line 238 in /var/www/html/dros/jsim/components/com_opensim/currency.php


########## 26.02.2016 10:50:13 ##### response for currency ##########
'
response for getCurrencyQuote:

\'\''



This seems to be our last stumbling block.

Opensim version 0.8.2.1
Money version 0.3.0.3
Ubuntu 14.04

Thanks for any help you can.

Cheers!
Dave

Please Log in or Create an account to join the conversation.

8 years 8 months ago #2383 by foto50
Hi dgbaker,

and welcome :) Happy the other issue is solved already ;)

The "cannot buy" is expected cause in most viewers, the click on the balance is to purchase inworld, which is not implemented in jOpenSimMoney. Usually there also comes a button with "go to website" where inworld currency can be purchased via the component jOpenSimPayPal.

But the message "No access for CLIENT_IP..." in an issue and can come in cases when the server (where OpenSim.exe is running) has more than one IP address or maybe running on some dynamicDNS service.

There is a way to solve this: check in your robust database (e.g. with phpMyAdmin) the table "regions" and look for this region to the column "serverIP". If this is not the same in the message, go to your ./bin/Regions/Regions.ini and change the value for ExternalHostName (usually = SYSTEMIP) to one of these IP's (dont remember which one it was in my case) and restart the simulator.

Hope this helps

Greetz
FoTo50

Please Log in or Create an account to join the conversation.

8 years 8 months ago #2384 by dgbaker
That's the odd thing, the IP in the message to the client in their viewer is their ISP assigned IP not any of the server IPs.

I've tried using SYSTEMIP as well as a FQDN and same issue.

Did notice depending on viewer if the Go To Website option is there or not. Onlook Viewer no link.

Also if you change line 204 of currency.php to be FALSE you get a better message of "In the current version of jOpenSimMoney, you only can buy from the website" and gives the link in both viewers I've tried.

Not sure though what repercussions that may have yet.

Is that message customizable anywhere?

Thanks
Dave

Please Log in or Create an account to join the conversation.

8 years 8 months ago #2385 by foto50
If you change to FALSE at line 204 you'll give access to all IP's that are NOT registered in regions ... then other regions that work correct would not work anymore.

Maybe the server has a 2nd network card using some local network and fires out at some router?

This message you can override easy: in Admin -> Extensions -> Languages -> Override ... add a new one for JOPENSIM_MONEY_BUYCURRENCY_MSG

Greetz
FoTo50
The following user(s) said Thank You: dgbaker

Please Log in or Create an account to join the conversation.

8 years 8 months ago #2386 by dgbaker
Ok will look further into this on this end.

Thanks
Dave

Please Log in or Create an account to join the conversation.

Time to create page: 0.128 seconds

Search

Donate jOpenSim

Please consider supporting our efforts.

Amount

Our Regions

Region: Loc X: Loc Y:
Agora 1000 998
BareBad… 997 997
Bohemas 996 998
BoraBor… 1002 999
Crystal… 1001 1000
DeepTho… 1005 998
FoToSan… 999 995
jCity 1001 997
jOpenWe… 1000 999
JuniorT… 1002 1001
Kanadah… 1002 1000
LindaKe… 1000 997
LittleC… 996 997
MonteSc… 1001 1001
Naos 999 999
Pangaea 1005 1003
RiverSi… 999 1000
Sakani 999 998
Snambin 1001 998
Tartola 997 998
ViewerH… 1002 998
WaterWo… 1001 999
WilderK… 1000 1000

jOpenSimWorld

Grid Status: Online
Total Regions: 23
Visitors (30 Days): 12
Total Residents: 485
Online Now: 0
Hypergriders online: 0