UPnP support

I think it would be a great idea to implement UPnP into the gserver
to help noobs getting started. This way they won’t have to manually
forward and open ports on their routers if their routers support UPnP.

I’ve been thinking about it a lot, and I think this would make a good
feature.

Sounds great, would of helped me, I had all kinds of trouble trying to host, ask beholder; he mustve been so annoyed haha, the wierd thing, is I’ve hosted other stuff fine before, graal is sorta wierd that way xD

It isn’t THAT hard to open a port and forward it to your computer…

Unless for some reason mothers/fathers lock there routers so there kids won’t screw something up. Lmao.

Edit: I was going to say I thought we had UPnP support already but then I was thinking of UDP so nvm.

We don’t have fully working UDP support either afaik.

I don’t support this idea completely… Mostly because we’ll be opening the community to a new brand of idiots, namely WUT IS ROOTER idiots.

If I had a buck for every time I had to explain to someone what a modem was, “It’s that black box plugging into your phone jack” “Whats a phone jack?”

I’d be rich! :smiley:

Mm… take a look at this guys: http://sourceforge.net/projects/platinum/
a upnp library for C++ , is that of any help?


Platinum UPnP

A cross-platform C++ library for discovering, controlling or implementing UPnP devices. Contains sample code for a UPnP AV MediaServer, MediaRenderer & Control Point.

Yeah, that would be of help. I’ve researched UPnP a bit, and I have thought of ideas on how to implement it in the gserver, but I haven’t had the time to start programming it. I was thinking of spawning a UPnP thread that tries to discover the router and open the ports in the background.

I found a good lib that you can use to implement it.

MiniUPnP
http://miniupnp.free.fr/index.html

Here’s an example of how he implemented it into X-Chat, pretty simple! :smiley:
http://miniupnp.free.fr/files/download.php?file=xchat-upnp20061022.patch

I’d do it myself but you expressed that you want UPnP in a separate thread and i’m not really sure how to use Boost so enjoy :stuck_out_tongue:

Nice one agret! :slight_smile:

UPnP support has been added. Agret tested it and confirmed that it added the port forward to his router.

Nalin confirmed it by connecting to my server :stuck_out_tongue: