Author Topic: Timed Out error, every time - please help  (Read 3008 times)

nullxero

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Timed Out error, every time - please help
« on: August 06, 2014, 11:01:59 AM »
When running examples server never connects, only get TimedOut
I recently purchased TNet and am trying to get some of the examples working, but every connection attempt simply times out.

Ive tried building the server from source, and also tried using the built in server. 

Here is a screenshot of what happens:
https://www.dropbox.com/s/8ymgr0vv72hn6b3/Screenshot%202014-08-06%2008.56.26.png

I click "Start Local Server" then click the LAN Ip address to auto-join (also tried the other join button).  The UI says Connecting... but doesn't ever go past that.

After a second or two a warning appears at the bottom that says "10.0.0.4:56513 has timed out".  If I run this from the console it says the same thing, but in the console. 

Please help!

-Ben :(

nullxero

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Timed Out error, every time - please help
« Reply #1 on: August 06, 2014, 12:41:53 PM »
I have traced the code to TNTcpProtocol, and OnConnectResult gets called, but then it doesn't step past a certain point:


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Timed Out error, every time - please help
« Reply #2 on: August 06, 2014, 07:17:52 PM »
Curious. What do you see when you launch TNServer.exe? How many local IPs do you have showing?

nullxero

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Timed Out error, every time - please help
« Reply #3 on: August 06, 2014, 07:26:54 PM »
For example:
  TNServer -name "My Server" -tcp 5127 -udp 5128 -udpLobby 5129

Local IPs: 1
  1: 10.0.0.11 (Primary)

Gateway IP:  10.0.0.1
External IP: 10.0.0.11

UDP Lobby Server started on port 5129 using interface 0.0.0.0
Game server started on port 5127 using protocol version 11
Press 'q' followed by ENTER when you want to quit.

UPnP: TCP port 5127 was opened successfully.
UPnP: UDP port 5129 was opened successfully.
UPnP: UDP port 5128 was opened successfully.

I realized that if I disable Good Ol Sockets it works fine.  I wanted to use Good Ol Sockets because I was told that Sockets dont work on mobile without a pro license. 

I wouldn't expect you to support Good Ol Sockets, but have you ever heard of this problem happening with people who use it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Timed Out error, every time - please help
« Reply #4 on: August 06, 2014, 08:09:58 PM »
External IP matching your local IP implies that it wasn't possible to figure out what your external IP is. I know some people have used Good Ol' Sockets here, but I can't point you to a specific thread. I would suggest getting in touch with that plugin's author. Perhaps the current latest version of TNet is using some functionality that the 3rd party plugin doesn't support?

bariscigal

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Timed Out error, every time - please help
« Reply #5 on: August 07, 2014, 04:40:26 AM »
Good Ol Sockets new version just works now for me. (1.3)
Mine was a  problem with the ports as i recall because i had the same timeout problem. GoS was causing random port assignment not the the one you determine .

Now it works for me. You can contact the GoS developer so he can send you the new update before it gets online it is the way i solved the problem.