[Solved]VPS Setup help.[Solved]

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

[Solved]VPS Setup help.[Solved]

Postby Ninjaoninja2 » 05 Jul 2014, 21:56

Hello,
I am trying to set SMFS up on my Ubuntu VPS problem is it says it can't bind that ip. I wasn't sure if Smartfoxserver wasn't capable of connecting to Virtual Private Servers or what but I need some help.
Last edited by Ninjaoninja2 on 23 Jul 2014, 21:57, edited 1 time in total.
Dyl89cp
Posts: 23
Joined: 16 Oct 2010, 06:16
Location: USA
Contact:

Re: VPS Setup help.

Postby Dyl89cp » 08 Jul 2014, 20:31

Did you change anything in the config under ip? I've never had this issue before, weird :P
-Dyl89
Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Re: VPS Setup help.

Postby Ninjaoninja2 » 09 Jul 2014, 23:55

Yeah I changed the ip to the vps ip address but thats it.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: VPS Setup help.

Postby rjgtav » 11 Jul 2014, 12:21

Hi there,

Have you tried configuring the serverIp setting as *?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Re: VPS Setup help.

Postby Ninjaoninja2 » 17 Jul 2014, 05:34

rjgtav wrote:Hi there,

Have you tried configuring the serverIp setting as *?

I want it running on my vps though.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: VPS Setup help.

Postby rjgtav » 17 Jul 2014, 23:52

Hi there,

Yes, but if you configure the serverIp tag on the config.xml to *, the server will bind to all the available IPs.
It's really useful when you're not sure what IP to bind.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Re: VPS Setup help.

Postby Ninjaoninja2 » 18 Jul 2014, 15:11

rjgtav wrote:Hi there,

Yes, but if you configure the serverIp tag on the config.xml to *, the server will bind to all the available IPs.
It's really useful when you're not sure what IP to bind.

That's right, I forgot about that. I'll try it and post back.
Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Cannot bind adress error while trying to connect to vps ip.

Postby Ninjaoninja2 » 20 Jul 2014, 00:02

Hello,
Okay so I have tried contacting bluehost which hosts my vps and they said the port 9339 is open but requires a service to run on it to show up as open. How am I supposed to run smartfoxserver while it's showing as closed but is really open.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: VPS Setup help.

Postby rjgtav » 20 Jul 2014, 18:26

----- Topics Merged. Please do not create multiple topics for the same issue. -----
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: VPS Setup help.

Postby rjgtav » 20 Jul 2014, 18:35

Hello,

If SFS binds a correct IP and port, even if the port is blocked, SFS will still bind successfully and not provide any errors.
In your case, as SFS is reporting it can't bind the specified IP, then it means that the IP you've configured on the <serverIp> setting of the config.xml file is probably wrong.

On a VPS, it usually isn't behind a router, so you have to enter the VPS' external IP (not the domain), on the <serverIp> setting.

Can you confirm that?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Re: VPS Setup help.

Postby Ninjaoninja2 » 20 Jul 2014, 19:41

Yes, I have the ip adress typed in.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: VPS Setup help.

Postby rjgtav » 21 Jul 2014, 03:23

What happened when you configured the <serverIp> setting to *?

I've found on the web that you need to buy a dedicated IP in order to BlueHost to open the ports for you.
Have you bought it?

Thanks
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Re: VPS Setup help.

Postby Ninjaoninja2 » 21 Jul 2014, 13:57

rjgtav wrote:What happened when you configured the <serverIp> setting to *?

I've found on the web that you need to buy a dedicated IP in order to BlueHost to open the ports for you.
Have you bought it?

Thanks

Yes I did buy a dedicated ip, and setting smartfoxserver to * works but in the avatarChat example when I specify the ip as * it won't connect.
Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Re: VPS Setup help.

Postby Ninjaoninja2 » 21 Jul 2014, 18:14

rjgtav wrote:What happened when you configured the <serverIp> setting to *?

I've found on the web that you need to buy a dedicated IP in order to BlueHost to open the ports for you.
Have you bought it?

Thanks

Okay so I reinstalled sfs on my server and using * works but it gives me this huge error! WARNING: java.util.logging.ConsoleHandler.formatter = it.gotoandplay.smartfoxserver.lib.SmartFoxSimpleLogFormatter
java.lang.ClassNotFoundException: it.gotoandplay.smartfoxserver.lib.SmartFoxSimpleLogFormatter not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./sfsExtensions/,file:lib/activation.jar,file:lib/commons-beanutils.jar,file:lib/commons-collections-3.2.jar,file:lib/commons-dbcp-1.2.1.jar,file:lib/commons-lang-2.3.jar,file:lib/commons-logging-1.1.jar,file:lib/commons-pool-1.2.jar,file:lib/concurrent.jar,file:lib/ezmorph-1.0.3.jar,file:lib/h2.jar,file:lib/js.jar,file:lib/json-lib-2.1-jdk15.jar,file:lib/json.jar,file:lib/jsr173_1.0_api.jar,file:lib/jysfs.jar,file:lib/jython.jar,file:lib/nanoxml-2.2.1.jar,file:lib/wrapper.jar,file:lib/xbean.jar,file:lib/javamail/imap.jar,file:lib/javamail/mailapi.jar,file:lib/javamail/pop3.jar,file:lib/javamail/smtp.jar,file:lib/jetty/jetty.jar,file:lib/jetty/jetty-util.jar,file:lib/jetty/jstl.jar,file:lib/jetty/multipartrequest.jar,file:lib/jetty/servlet-api.jar,file:lib/jetty/standard.jar,file:lib/jsp-2.1/commons-el-1.0.jar,file:lib/jsp-2.1/core-3.1.0.jar,file:lib/jsp-2.1/jsp-2.1.jar,file:lib/jsp-2.1/jsp-api-2.1.jar,file:lib/jsp-2.1/jstl.jar,file:lib/jsp-2.1/standard.jar,file:lib/lsc.jar,file:lib/commons-io-1.4.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.Class.forName(libgcj.so.10)
at java.util.logging.LogManager.locateClass(libgcj.so.10)
at java.util.logging.LogManager.getClassProperty(libgcj.so.10)
at java.util.logging.LogManager.getInstanceProperty(libgcj.so.10)
at java.util.logging.StreamHandler.<init>(libgcj.so.10)
at java.util.logging.ConsoleHandler.<init>(libgcj.so.10)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initLogger(SmartFoxServer.java:487)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:576)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: VPS Setup help.

Postby rjgtav » 21 Jul 2014, 20:14

Hello,

Are you using the correct java runtime for linux from Sun Microsystems?

I suggest you to look at this topic, as it seems about the same issue you're facing:
viewtopic.php?f=1&t=2166&p=8797&hilit=SmartFoxSimpleLogFormatter#p8797

Cheers
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 47 guests