1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

1.23 (obsolete) UPnP for TShock 1.0.4

A UPnP plugin for TShock.

  1. IcyPhoenix

    TShock Contributor

    Joined:
    Jul 27, 2012
    Messages:
    367
    Just for clarification here, UPnP can be disabled either on the routers/modems end or the Windows side. If one or the other is disabled, any UPnP applications (including this plugin) will not be able to utilize UPnP capabilities (no automatic portfowarding).

    If UPnP is disabled windows side, that is an easy fix: http://www.computerhope.com/issues/pictures/vistaupnp.jpg (vista, but win 7 should be similar)

    If its disabled router side, then TobyJames is pretty screwed because he doesn't have the password and username.
     
    • Like Like x 1
  2. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    That's exactly what I am talking about. There are two versions because some versions don't work on some setups, not because I just thought why not.
    But, sure, like I said, ignore my suggestions and listen to Wight, he is totally the topicstarter and the author of this plugin.
     
  3. TobyJames

    TobyJames Level 4

    Joined:
    Nov 23, 2014
    Messages:
    68
    Are you serious... Do I really have to try to explain this again...
    I have a SECURE router meaning it's LOCKED and doesn't have UPnP enabled. Never has, probably never will. THE PLUGIN ITSELF is not my problem. My router and my lack of permission to change its settings is the problem. Seriously.
     
  4. shane

    shane Level 1

    Joined:
    Jan 4, 2015
    Messages:
    14
    I got the error listed below... kinda new to this stuff any help would be appreciated. thanks




    |> Version 4.2.3.720 (And the great beast rose from its slumber, ready to take o
    n the world again.) now running.
    AutoSave Enabled
    Backups Disabled
    [Server API] Info Plugin TShock v4.2.3.720 (by The Nyx Team) initiated.
    [Server API] Warning Plugin "UPnP" has had an unhandled exception thrown by one
    of its GameInitialize handlers:
    System.MissingMethodException: Method not found: 'Boolean TerrariaApi.Server.Ser
    verApi.get_RunningMono()'.
    at UPnP.SharpUPnP.GetGateways()
    at UPnP.Plugin.Start(EventArgs args)
    at TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args)
    Terraria Server v1.2.4.1
     
  5. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    Either use a newer TSAPI build, or an older UPnP build.
     
  6. shane

    shane Level 1

    Joined:
    Jan 4, 2015
    Messages:
    14
    Could you give me a link to where I can get the latest versions?

    Thank you for the reply and the help.
     
  7. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    Older plugin version
     
  8. shane

    shane Level 1

    Joined:
    Jan 4, 2015
    Messages:
    14
    Thanks, that was fast. will be testing this tonight, will let you know how it goes.

    I have TShock 4.2.3 for Terraria 1.2.4.1 Update 1
     
  9. PFaurschou

    PFaurschou Level 1

    Joined:
    Jan 6, 2015
    Messages:
    5
    Here's an issue im having:

    [01-06-15 19:44:08] [Server API] Verbose: TerrariaApi - Server v1.16.0.0 started.
    [01-06-15 19:44:08] [Server API] Verbose:Command line: "C:\Users\Philip\Desktop\Tshock Server\TerrariaServer.exe"
    [01-06-15 19:44:08] [Server API] Verbose:OS: Microsoft Windows NT 6.2.9200.0 (64bit: True)
    [01-06-15 19:44:08] [Server API] Verbose:Mono: False
    [01-06-15 19:44:08] [Server API] Info: Plugin UPnP v1.0.2.0 (by Simon311) initiated.
    [01-06-15 19:44:09] [Server API] Info: Plugin TShock v4.2.3.720 (by The Nyx Team) initiated.
    [01-06-15 19:44:09] [Server API] Warning: Plugin "UPnP" has had an unhandled exception thrown by one of its GameInitialize handlers:
    System.MissingMethodException: Metoden blev ikke fundet: 'Boolean TerrariaApi.Server.ServerApi.get_RunningMono()'.
    ved UPnP.SharpUPnP.GetGateways()
    ved UPnP.Plugin.Start(EventArgs args)
    ved TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args)

    I noticed something about mono in there, could that be important?
     
  10. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    • Like Like x 1
  11. PFaurschou

    PFaurschou Level 1

    Joined:
    Jan 6, 2015
    Messages:
    5
    '(UPnP) Failed to discover UPnP Service' i'd guess this means my router doesn't have UPnP activated?(the earlier post worked :) )
     
  12. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    Most likely so, but make sure to try alternative version as well.
     
  13. PFaurschou

    PFaurschou Level 1

    Joined:
    Jan 6, 2015
    Messages:
    5
    Alright, thanks for your time :)
     
  14. PFaurschou

    PFaurschou Level 1

    Joined:
    Jan 6, 2015
    Messages:
    5
    I'm back! I Fixed most of the problems, got the UPnP running and everything, theres just one problem, when my friends try to join the just get 'connecting to (IP)' and this shows http://prntscr.com/5p9vb8
     
  15. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    811
    The title is how it is supposed to look; we had this discussion in another thread a few days ago.

    If UPnP is running correctly, check the other possible issues (such as a local firewall, or even incorrect IPs).
     
  16. PFaurschou

    PFaurschou Level 1

    Joined:
    Jan 6, 2015
    Messages:
    5
    Thanks for the reply! I figured that out by myself yesterday, it seems to be a problem with my port forwarding itself, so I'll look into that.
     
  17. Simon311

    Simon311 TShock Contributor; Moderator
    TShock Contributor Plugin Developer

    Joined:
    Feb 23, 2013
    Messages:
    337
    • Like Like x 1