SphereCommunity
Connection fail - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Connection fail (/Thread-Connection-fail)

Pages: 1 2


Connection fail - Wayland - 05-30-2012 10:11 PM

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


RE: Connection fail - RanXerox - 05-30-2012 11:39 PM

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.


RE: Connection fail - Wayland - 05-31-2012 12:14 AM

Thanks for the reply RanXerox.
The server opens and runs but external clients still can't connect


RE: Connection fail - Valios - 05-31-2012 01:28 AM

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.


RE: Connection fail - Wayland - 05-31-2012 09:13 AM

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


RE: Connection fail - Wayland - 06-02-2012 01:30 PM

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


RE: Connection fail - Valios - 06-02-2012 02:03 PM

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


RE: Connection fail - Wayland - 06-03-2012 12:09 AM

[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.


RE: Connection fail - Wayland - 06-03-2012 01:18 AM

Updated some stuff in the files, still not working tho


RE: Connection fail - Valios - 06-03-2012 05:58 AM

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/doublerouterportforwarding.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