The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connection fail
Author Message
Wayland
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #1
Sad Connection fail
Greetings all,
after a long time me and some friends decided to open a new shard just to play a bit.
But the problem is external clients can not connect to the server.
I am using a router and wireless, I have opened the port in firewall settings, forwarded it to the server notebook, and have tried the following configuration in the sphere.ini:

[SERVERS]
Darkness & Hope
127.0.0.1
2593

Darkness & Hope
dhshard.servegame.com
2593

I have tried commenting and uncommenting the last 3 lines as it says in the ini itself, for as I see it, if I just leave it commented than it won't open for external clients, do I see it wrong? Oh yes, and as you can see I have signed up for no-ip.
When I leave it uncommented server just won't start up, it returns the following error:

FATAL:Unable to bind listen socket 186.236.144.9 port 2593 - Error code: -1
08:51:FATAL:Server terminated by error -9!

I am completely clueless right now, how to do this?
Thanks in advance
05-30-2012 10:11 PM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: Connection fail
Stop the server. Edit sphere.ini file and leave the [SERVERS] section empty, and in the f_onserver_start function in the sphere_serv_triggers.scp file put this:

Code:
[FUNCTION f_onserver_start]
//"This function is called on server startup"
SERV.SERVIP dhshard.servegame.com

Then start the server.
(This post was last modified: 05-30-2012 11:39 PM by RanXerox.)
05-30-2012 11:39 PM
Find all posts by this user Like Post Quote this message in a reply
Wayland
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #3
RE: Connection fail
Thanks for the reply RanXerox.
The server opens and runs but external clients still can't connect
05-31-2012 12:14 AM
Find all posts by this user Like Post Quote this message in a reply
Valios
Super Moderator
****

Posts: 390
Likes Given: 0
Likes Received: 12 in 9 posts
Joined: Mar 2010
Reputation: 6

Sphere Suite 2013

Post: #4
RE: Connection fail
It's not about opening your ports in firewall settings only, you need to forward your ports.
You can configure it by typing your internal IP into your default browser. Example (Linksys routers: 192.168.1.x | Thompsom routers: 10.0.0.x).
You'll have to login and then if it's a linksys router you go to "applications & gaming" category -> Port Range forwarding.
In thompson routers you'll find that under the NAPT/NAT section.

Do a google search with these keywords for more info: "your router brand", port forwarding, NAPT, NAT.
(This post was last modified: 06-03-2012 07:00 AM by Valios.)
05-31-2012 01:28 AM
Find all posts by this user Like Post Quote this message in a reply
Wayland
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #5
RE: Connection fail
nothing seems to be working...
yeah, I have forwarded, but still no success
thank you guys, but it seems I'll have to go for a lan simulator
05-31-2012 09:13 AM
Find all posts by this user Like Post Quote this message in a reply
Wayland
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #6
RE: Connection fail
Ok, just now it came to me that I forgot an important information
I am behind 2 routers
There is one that is a cable router, that I will call R1, and a second one that is the wireless router, here called R2.
As I see it, R1 send the packets to R2 and R2 distributes them to the computers in it's network.
So, what I did was forward the port from R1 to R2 and than from R2 to my notebook where the server is supposed to run.
I have triggered the port in both routers, and I have already tried to put the notebook in DMZ, no success in external clients login still.
With this information, any ideas how to make this work?
I really appreciate the time and will to help, thank you guys
06-02-2012 01:30 PM
Find all posts by this user Like Post Quote this message in a reply
Valios
Super Moderator
****

Posts: 390
Likes Given: 0
Likes Received: 12 in 9 posts
Joined: Mar 2010
Reputation: 6

Sphere Suite 2013

Post: #7
RE: Connection fail
Attach your sphere.ini and sphere_serv_triggers.scp here and take an screenshot to your configuration for port forwarding and post it. Disable your firewall/antivirus also
06-02-2012 02:03 PM
Find all posts by this user Like Post Quote this message in a reply
Wayland
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #8
RE: Connection fail
[Image: scaled.php?server=526&filename=r...es=landing]
[Image: scaled.php?server=600&filename=r...es=landing]
[Image: scaled.php?server=15&filename=r2...es=landing]
[Image: scaled.php?server=225&filename=r...es=landing]

Okay, here are the images of my routers configuration and the server config files are in the zip file.


Attached File(s)
.zip  server.zip (Size: 11.91 KB / Downloads: 5)
06-03-2012 12:09 AM
Find all posts by this user Like Post Quote this message in a reply
Wayland
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: May 2012
Reputation: 0



Post: #9
RE: Connection fail
Updated some stuff in the files, still not working tho


Attached File(s)
.zip  server.zip (Size: 11.92 KB / Downloads: 3)
06-03-2012 01:18 AM
Find all posts by this user Like Post Quote this message in a reply
Valios
Super Moderator
****

Posts: 390
Likes Given: 0
Likes Received: 12 in 9 posts
Joined: Mar 2010
Reputation: 6

Sphere Suite 2013

Post: #10
RE: Connection fail
Being behind two routers doesn't make it easier for you at this point, I guess you've probably read this article before: http://portforward.com/help/doublerouter...arding.htm

As I can see you can manually change your IP in your D-Link configuration. I haven't opened a live server from my router in years, what I'm going to tell you couldn't be 100% accurate but try this... Instead of your private IP wich is 192.168.0.x change it to your public/external one, you can get it here (http://whatismyipaddress.com/). Connect your machine directly to the main router, and always check the console to see if there is an attempt from connections outside your home network. But honestly as I can remember, the way it works is forwarding the private ip to your desired port and providing your clients with your external ip. So maybe there is something wrong in the configuration with your dns service provider. Try with your external IP only instead of dhshard.servegame.com, and send the correct login.cfg to your clients "LoginServer=84.x.x.x,2593" or whatever your public ip adress is. You can call your ISP for more assistance
(This post was last modified: 06-03-2012 06:40 AM by Valios.)
06-03-2012 05:58 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)