wamp vs sfs

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

Moderators: Lapo, Bax

azaroth
Posts: 45
Joined: 21 Dec 2012, 09:23

wamp vs sfs

Postby azaroth » 07 Sep 2013, 17:27

Hey guys so i want to use these two at the same time so i did this:

localhost 127.0.0.1 for sfs
localhostdb 127.0.0.2 for wamp

in hosts file. But its not working. The last time it worked. Any help?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: wamp vs sfs

Postby Lapo » 08 Sep 2013, 09:10

The problem is that 127.0.0.2 and 127.0.0.1 are virtual addresses and they all point to the same address.
So it can't be done that way. You will need to change ports so that they don't collide.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
azaroth
Posts: 45
Joined: 21 Dec 2012, 09:23

Re: wamp vs sfs

Postby azaroth » 08 Sep 2013, 09:42

Thanks, what ports should i use?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: wamp vs sfs

Postby Lapo » 08 Sep 2013, 10:06

I don't know exactly which ports your wamp uses.
Do you just run a database or there's more? I am not familiar with that product, although I imagine it contains the usual Apache/PHP/Mysql etc... are you running them all?
Lapo

--

gotoAndPlay()

...addicted to flash games
azaroth
Posts: 45
Joined: 21 Dec 2012, 09:23

Re: wamp vs sfs

Postby azaroth » 08 Sep 2013, 17:06

Yes those 3. I'm not sure about php but apache and mysql run for sure.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: wamp vs sfs

Postby Lapo » 09 Sep 2013, 07:38

The port collision is between SmartFoxServer's internal http server running on port 8080 and Apache, evidently.
You can change SFS's internal http server config by editing the config/jetty/jetty.xml file and use another port, e.g. 8082.
Lapo

--

gotoAndPlay()

...addicted to flash games
azaroth
Posts: 45
Joined: 21 Dec 2012, 09:23

Re: wamp vs sfs

Postby azaroth » 09 Sep 2013, 11:43

Ok, so they will both look at localhost but in different ports?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: wamp vs sfs

Postby Lapo » 09 Sep 2013, 13:34

Exactly
Lapo

--

gotoAndPlay()

...addicted to flash games
azaroth
Posts: 45
Joined: 21 Dec 2012, 09:23

Re: wamp vs sfs

Postby azaroth » 09 Sep 2013, 18:32

Cool, in the file it says about default port 8080, confidential port 8440 and a socket-something port 8082. I also have this problem that it cant bound the sockets after restart. Its probably because of the wamp that runs, what ports should i edit in the file to avoid the whole conflict?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: wamp vs sfs

Postby rjgtav » 10 Sep 2013, 09:04

Hi,

On SFS you have to update the listening socket addresses, at the Zone Configurator module, and Jetty's port at the config/jetty/jetty.xml file.
On WAMP, you have to update, at least, Apache's port at the httpd.conf file, and you can also change MySQLs port in case it is conflicting.

Don't forget to restart each of the servers each time you update their configurations.
If it is still conflicting, can you show the logs and tell us which program is using which port?

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.
azaroth
Posts: 45
Joined: 21 Dec 2012, 09:23

Re: wamp vs sfs

Postby azaroth » 12 Sep 2013, 15:32

Hello, right now i dont think i need to change ports i see no conflinct. The only problem i see in that smartfoxserver can't bound sockets after i restart it. And its not wamp's fault, i had it closed :)
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: wamp vs sfs

Postby Lapo » 12 Sep 2013, 15:52

Error logs please? :)
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 116 guests