Author Topic: Unable to open port  (Read 2738 times)

lynohd

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Unable to open port
« on: May 22, 2016, 02:44:14 PM »
Hi guys, I just got TNet and I've been trying to get a server up and running (standalone) but when i run it this is what i get

(IM A NOOB TO NETWORKING)
  1. [2016.05.22 21.42.11] Checking UPnP status on 192.168.0.14...
  2. [2016.05.22 21.42.11] UPnP Gateway: 192.168.0.10
  3. [2016/05/22 21:42:11] External IP: ----
  4. [2016/05/22 21:42:11] UDP Lobby Server started on port 5129 using interface 0.0.0.0
  5. [2016/05/22 21:42:11] Admins: 0
  6. [2016/05/22 21:42:11] Bans: 0
  7. [2016/05/22 21:42:11] Game server started on port 5127 using protocol version 20160207
  8. [2016/05/22 21:42:11] Loaded server.dat
  9. [2016.05.22 21.42.12] UPnP: Unable to open UDP port 5129
  10. [2016.05.22 21.42.13] UPnP: Unable to open TCP port 5127
  11. [2016.05.22 21.42.13] UPnP: Unable to open UDP port 5128
  12. [2016/05/22 21:42:13] Press 'q' followed by ENTER when you want to quit.
  13.  

I have opened the UDP/TCP ports 5127-5130 in my router settings but that didnt change naything at all

cmifwdll

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 149
  • Posts: 285
  • TNet Alchemist
    • View Profile
Re: Unable to open port
« Reply #1 on: May 23, 2016, 01:35:08 PM »
UPnP is just a protocol that gives applications the power to open ports automatically instead of you having to do it manually. It isn't necessary for the server to work, or for hole-punching to work either. Not every router even supports UPnP, so this message is perfectly normal.

If you're having trouble connecting to the server, make sure the ports are open on both your OS and your router. Other than that, it's possible that your client code is the problem. If your server and client are on the same PC (or local network, even) make sure you're connecting using loopback address or your local address, *not* your public address. Most routers don't support hairpinning.

lynohd

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: Unable to open port
« Reply #2 on: May 23, 2016, 04:00:39 PM »
Thank you very much for clarifying this :) makes me feel alot better!
I think I might have got it working like it should now :)