Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
5052 Weergaven

Hello Everyone,

I have sample script which take dump backup using XMLRPC, This script works well with intra-network(Internal network), but having Access denied Error while applying on inter-network.

Here is my script

------------------------

 
import base64 import xmlrpclib sock = xmlrpclib.ServerProxy('http://serverip:8888/xmlrpc/db') #Real public IP all_database = sock.list() for database in all_database: file_path = "/home/serpentcs/backup/" #Give path of folder where backup file will be store file_path += database file_path += ".dump" backup_db_file = open(file_path, 'wb') backup_db_file.write(base64.b64decode(sock.dump('admin', database))) #admin is master password in my case backup_db_file.close()

------------------------

Does anybody has idea about this? help will be appreciated.

Thanks & Regards,

Anil.


Avatar
Annuleer

Hi Anil,

Have you solved this?

Beste antwoord

Hey,

Try "Port Forwarding" on client server. 192.168.1.13 - is your private IP address on the LAN. That might be a case of IP change. 

contact your system admin and tell them to forward port. 

Very good article with pictures is here: How to Forward Ports on Your Router.

Avatar
Annuleer
Auteur

You don't understand my question, I don't have problem with IP address, in example i have just added dummy IP, using that example with Public IP have authentication problem.

Auteur

@Openies : Thanks for the best link of IP forwarding, In I am using the Public IP, for the security reason I can not display on example that why I have just add sample IP. Just try this script with your any of your live server and see what is the problem I am facing.

Beste antwoord

Hello Anil,

I think problem is due to private IP. Private IP is only access within local area network. 

So try after make your IP as public IP. 

May be this will helpful you.

Thanks.

Shamji.



Avatar
Annuleer
Auteur

@Shyam : The IP I am using for execute this script is already public static IP. its need some authentication to access that system. Which is accessible via inter network world from browser.

Its not public. I cant access.

Auteur

@shyam: I appreciate your answer, But I don't have any problem regarding IP address. You don't understand my question properly. Read twice and think.

Gerelateerde posts Antwoorden Weergaven Activiteit
2
mei 21
2323
1
okt. 23
2569
1
aug. 15
6575
1
mrt. 24
1563
1
sep. 23
190