Whats wrong with this command?
Brian OBrien <[email protected]> Sun, 5 Dec 2004 18:49:41 -0500 (EST)
| Newsgroups | gmane.linux.upnp-sdk.general |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to open a port on my UPnP nat but its
failing...
POST /control?WANIPConnection HTTP/1.1
HOST: 192.168.2.1:80
CONTENT-LENGTH: 1228
CONTENT-TYPE: text/xml ; charset="utf-8"
SOAPACTION:
"urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping"
<?xml version="1.0"?>
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:AddPortMapping
xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
<NewRemoteHost
xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="string">
139.48.44.24
</NewRemoteHost>
<NewExternalPort
xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="ui2">
21
</NewExternalPort>
<NewProtocol
xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="string">
TCP
</NewProtocol>
<NewInternalPort
xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="ui2">
21
</NewInternalPort>
<NewInternalClient
xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="string">
192.168.2.5
</NewInternalClient>
<NewEnabled
xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="boolean">
1
</NewEnabled>
<NewPortMappingDescription
xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="string">
ftpd
</NewPortMappingDescription>
<NewLeaseDuration
xmlns:dt="urn:schemas-microsoft-com:datatypes"
dt:dt="ui4">
1200
</NewLeaseDuration>
</u:AddPortMapping>
</s:Body>
</s:Envelope>
This is the response I'm getting.
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>
s:Client
</faultcode>
<faultstring>
UPnPError
</faultstring>
<detail>
<UPnPError
xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>
501
</errorCode>
<errorDescription>
Action Failed
</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/