Make sfs2X worldwide

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

nunobarao
Posts: 36
Joined: 21 Mar 2011, 19:41

Make sfs2X worldwide

Postby nunobarao » 23 Mar 2011, 17:11

Hi i cant understand how to configure smartfox with other server online, i have a website online, i can upload the files of my game, the users can see the app on their computers but they can connect... i know its about configure smartfox with my server but how can i do that?

ive tried to put my ip machine or ip server to config.xml but they dont connect only me.

Thanks
User avatar
adenault
Posts: 42
Joined: 07 Feb 2011, 14:22

Postby adenault » 23 Mar 2011, 17:45

Do you mean that you can only connect locally (i.e. you are connecting from the same machine as the server)?

Cheers,

Alex
nunobarao
Posts: 36
Joined: 21 Mar 2011, 19:41

Postby nunobarao » 23 Mar 2011, 18:05

Hi Alex, yes i can only connect locally.

this is what im doing:

run sfs2x with my ip machine 192.******

use my ip in config.xml 192.**** at port 8080

i´ve port forward my router to 9933


i´ve tried to upload my game to my webserver with those configuration on config.xml

and for me it runs, for others doesn´t run.


And i´ve tried aswell connect via Wamp server with the same settings but in this one they cant access my "home server" with wampserver im giving them to access with my 192.****** ip and i even tried router ip but nothing happens.




thank you.
ext0sus
Posts: 71
Joined: 17 Oct 2010, 16:14

Postby ext0sus » 24 Mar 2011, 14:06

An IP starting with 192 is your LAN IP. Only other computers on your network can see it.

Go to www.whatismyip.com and get your IP from there. That is the IP you should use in the sfs-config.xml
nunobarao
Posts: 36
Joined: 21 Mar 2011, 19:41

Postby nunobarao » 24 Mar 2011, 22:17

Ok so if i load the config.xml from my webserver (not from mywampserver) i have to put "myip" into config.xml or ipserver?

thank you ext0sus
nunobarao
Posts: 36
Joined: 21 Mar 2011, 19:41

Postby nunobarao » 24 Mar 2011, 22:26

Ok connection succesfull ;)

Thank you for both of you.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Baidu [Spider] and 138 guests