コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4 返信
5103 ビュー

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.


アバター
破棄

Hi Anil,

Have you solved this?

最善の回答

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.

アバター
破棄
著作者

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.

著作者

@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.

最善の回答

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.



アバター
破棄
著作者

@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.

著作者

@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.

関連投稿 返信 ビュー 活動
2
5月 21
2375
1
10月 23
2661
1
8月 15
6636
1
3月 24
1624
1
9月 23
190