Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14126

How to Change the Type of Connection with Python and FritzConnection?

$
0
0

I want to Change the Type of Connection with FritzConnection in Python. What is the command to change the connection type and where must the login data for the static IP be entered? Enclosed is a photo where you can see the difference when I read out the information when I am logged in once normally and once via the static IP.

fc.call_action('WANPPPConnection','GetInfo')

On the second Picture is the GUI from the FritzBox what i want to change with Python.

GUI Fritzbox

Thanks for help.

I tried

fc.call_action('WANPPPConnection','SetForwardingEntryEnable',NewEnable = 'False')

and

fc.call_action('WANPPPConnection','AddPortMapping',Enabled=0)

fc.call_action('WANPPPConnection','AddPortMapping',Enabled="False")

fc.call_action('WANPPPConnection','AddPortMapping',NewEnabled="False")

fc.call_action('WANPPPConnection','AddPortMapping',NewEnabled=0)

fc.call_action('WANPPPConnection','AddPortMapping',NewEnabled='0')

fc.call_action('WANPPPConnection','AddPortMapping',NewEnabled='FALSE')

fc.call_action('WANPPPConnection','AddPortMapping',Enabled={0})

I always got

FritzArgumentError: UPnPError:errorCode: 402errorDescription: Invalid Args


Viewing all articles
Browse latest Browse all 14126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>