I am able to Port Forward my own Laptop ip if defined in the NewInternalClient parameter of AddPortMapping SOAP request for UPnP Router.
Is it not possible to Port Forward another Laptop's IP through AddPortMapping SOAP command ?
First I tried to my Laptop IP (192.168.250.205) and it was successful by the given below request:
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"><NewRemoteHost></NewRemoteHost><NewExternalPort>3123</NewExternalPort><NewProtocol>UDP</NewProtocol><NewInternalPort>9153</NewInternalPort><NewInternalClient>192.168.250.205</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>PM_3123</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></u:AddPortMapping></s:Body></s:Envelope>
But i am getting Error Code = 718 with Error Description as ConflictInMappingEntry. If i try to Port Forward another device/PC IP (192.168.250.201) in the NewInternalClient parameter - the request is given below:
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"><NewRemoteHost></NewRemoteHost><NewExternalPort>3124</NewExternalPort><NewProtocol>UDP</NewProtocol><NewInternalPort>9154</NewInternalPort><NewInternalClient>192.168.250.201</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription>PM_3124</NewPortMappingDescription><NewLeaseDuration>0</NewLeaseDuration></u:AddPortMapping></s:Body></s:Envelope>
I am getting the below response:
<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>718</errorCode><errorDescription>ConflictInMappingEntry</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
any help would be greatly appreciated.. Thanks in advance.