Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
UPnP -- no more port forwarding #360443
02/23/11 23:22
02/23/11 23:22
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
DOWNLOAD DLL HERE

Make sure to read the README, as it has some licence requirements. The licence requirements aren't mine, but I have to include them since I'm mostly using someone else's code (the licence permits it).

So what does it do? It lets you use UPnP to have your game automatically set up port-forwarding for you. Most routers support it, but not all, so you should still include documentation in your app to instruct those who want to host and will have to do port-forwarding manually.

Opening and closing ports takes about a second. Since this isn't an engine function, there should be nothing wrong with calling the functions in a separate thread to avoid interrupting game flow.

I'm going to try and do that in the next version of KarBOOM.
EDIT2: Threading with UPnP works like a charm.

Anyway, have fun laugh

Jibb

EDIT: Should this be here or in Lite-C Contributions? This forum seems to apply to non-code assets.

EDIT2: Same link, updated version that should eliminate the need for "msvcr100.dll".

EDIT3: msvcr100.dll is included.

Last edited by JulzMighty; 02/28/11 21:20.

Formerly known as JulzMighty.
I made KarBOOM!
Re: UPnP -- no more port forwarding [Re: JibbSmart] #360444
02/23/11 23:29
02/23/11 23:29
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Thank you very much, Jibb, that's a neat contribution! wink


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: UPnP -- no more port forwarding [Re: Superku] #360457
02/24/11 04:55
02/24/11 04:55
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
Good contribution! Although I must honestly say that the firewall my gateway uses does not support UPnP, so this is useless to me. tongue

Originally Posted By: JibbSmart
Should this be here or in Lite-C Contributions? This forum seems to apply to non-code assets.

Lite-C Contributions is for contributions of purely Lite-C code. This is a plugin, so I think it doesn't belong there...

EDIT: Scratch that, I just saw this description of the Lite-C Contributions forum:
Quote:
This forum is for code snippets or external DLL implementations to the lite-C game programming language.

I think it's pretty clear where this belongs, then.

Last edited by Redeemer; 02/24/11 04:56.

Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: UPnP -- no more port forwarding [Re: Redeemer] #360462
02/24/11 07:10
02/24/11 07:10
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Danm my Router is not Upnp enabled >.<" However i´ll definately use this laugh Thank you sooo much laugh !!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: UPnP -- no more port forwarding [Re: alibaba] #360464
02/24/11 07:36
02/24/11 07:36
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
^^ I also made a small UPnP implementation the last week. Are you using a library or have you implemented the UPnP protocol for yourself?


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: UPnP -- no more port forwarding [Re: Dark_samurai] #360467
02/24/11 08:20
02/24/11 08:20
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
@Dark_Samurai
Great! So we will get intergreated UPnP in ANet? Hopefully ^^


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: UPnP -- no more port forwarding [Re: alibaba] #360475
02/24/11 11:24
02/24/11 11:24
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Exactly ;-) but i have to finish work on some other features until the next release.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: UPnP -- no more port forwarding [Re: Dark_samurai] #360485
02/24/11 13:56
02/24/11 13:56
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
@Dark Samurai: I'm using MiniUPnP. I'd love to have done it all myself, but I had no idea where to start. Since I'm only using a small part of MiniUPnP I want to poke around and make my own smaller version that doesn't use someone else's library, so I don't have to worry about including other people's licences.

If I do get around to that, I'll put that up here.

And if a moderator could move this to Lite-C Contributions, that'd be much appreciated laugh

Jibb

EDIT: What about you, Dark Samurai? Did you implement it yourself or use a library?

Last edited by JulzMighty; 02/24/11 14:31.

Formerly known as JulzMighty.
I made KarBOOM!
Re: UPnP -- no more port forwarding [Re: JibbSmart] #360495
02/24/11 14:58
02/24/11 14:58
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
No I'm using the same library. Implementing such protocols is a very difficult task. This is only really possible if you have a document that describes the standard of the protocol. Otherwise it won't work properly with all devices.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: UPnP -- no more port forwarding [Re: Dark_samurai] #360496
02/24/11 14:59
02/24/11 14:59
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Fair enough. I'm content to stick with MiniUPnP and include the licence.

Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1