UPNP library

haha, that owuld make a differnce

I know the feeling :wink:

My problem is my router i cant even login to the admin web interface to see whats going onā€¦i have a brand new netgear wireless router to test see if that makes any difference.

Thatā€™s going to be tricky. Could be that upnp is just disabled, and the router handles requests in a really passive-aggressive manner. Try with the alternative control point software I linked to earlier. Why canā€™t you log into the admin pages?

LOL it was a belkin router it always played up sometimes it would let me login, other times it wouldnt i thought it was because i was running my web server but it was just a rubbish router i have setup my new netgear router and the test code is working perfect again ;D

But it wont add a port (invalidAction error)theres too many parameters for the netgear

on netgear you needā€¦

Whats it called ?
what type ?
start port ?
end port?
local address ?

going to have a look at the docs see if i can work it out.

EDIT

i took out these linesā€¦



			int nummaps = dev.getNatMappingsCount();
			System.out.println("nummaps = "+ nummaps);

and it succesfully added an entry in the upnp section

Peculiar - looks like itā€™s trying to do port range forwarding rather than a single port mapping. Iā€™ve changed the jar so that the device description is printed out. What does that give you?

This is the output i gotā€¦

EDIT

IT does add an entry and removes it succesfully but it doesnt touch port forwardingā€¦looks to me like it just adds the port mapping ???

and seemyport couldnt see me ::slight_smile:

Aha! Your device has both a PPP and IP connection service. Iā€™ve reinstated some code to handle this that SuperBonBon had commented out as he didnā€™t have a device to test with. Unfortunately it depends on an optional action that your device doesnā€™t support, so Iā€™ve also added some more code that might work.
Download and run the jar again, post the output and also post your internet connection type (ADSL/Cable/whatever). I reckon we could be getting closerā€¦

ok heres the new output file. it added it then it took it away, btw im running on virgin media 10mb cable connection with a Netgear WGR614v9 wireless router. i havent managed to write any code to test out the mapping yet i was wanting to get round to it tonightā€¦