Behind-a-router help

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

Moderators: Lapo, Bax

hemetsu
Posts: 2
Joined: 30 Apr 2010, 03:37

Postby hemetsu » 30 Apr 2010, 03:43

I'm trying out the simplechat example but it seems that I can only get it to work locally (127.0.0.1). I've tried SFSlite and SFSBasic, following the above instructions and I still couldn't get it working. Every time anyone tries to connect (including myself), they will be stuck on "Connecting...". Can anyone that got it to work help me a little? Thanks.
hemetsu
Posts: 2
Joined: 30 Apr 2010, 03:37

Postby hemetsu » 30 Apr 2010, 21:32

By the way, I'm able to telnet the machine (192.168.2.15 9339) but can't telnet the router's ip (64.229.169.105 9339). I'm pretty sure I've got port forwarding correct though. I've turned firewall and antivirus software off. Simplechat still gets stuck at "Connecting...".
longmvucp

How To configure the NAT service

Postby longmvucp » 20 Jun 2010, 18:59

Hello,
idk how to configure the NAT service i cant find how

3- Now it's time to configure your router. Outside of your LAN nobody knows the addresses of your computers in the network as they use local addresses. In other words, from outside, the only available "entry point" is your router which is assigned an IP address.

You should configure the NAT service (Network Address Translator) of your router so that all requests on port 9339 (SFS default port) are redirected the computer running SmartFoxServer (in our example the IP is 192.168.0.16)
mrnothersan
Posts: 226
Joined: 24 Jan 2010, 18:38

Postby mrnothersan » 20 Jun 2010, 19:55

to longmvucp:
It is all in this forum post: viewtopic.php?t=306
longmvucp

Postby longmvucp » 21 Jun 2010, 01:15

mrnothersan wrote:to longmvucp:
It is all in this forum post: viewtopic.php?t=306


i only need to know how to config the NAT this might be better

Me and a friend of mine are making a flash game that will be multiplayer. We have all the files that we need including sfs and we dont know how to configure the NAT service that all requests on port 9339 (SFS default port) are redirected the computer running SmartFoxServer.

anyone know how?
Aiidenb
Posts: 263
Joined: 16 Aug 2010, 22:08
Location: England
Contact:

Postby Aiidenb » 15 Dec 2010, 17:29

Hey there.
For starters Lapo thanks for the great tutorial.
But, :roll: It says it connected but the 'login' button dosent work :/


http://quackbay.com/client/avatarChat.swf

If anyone can help that will be great :P
Thanks :D [/url]
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 15 Dec 2010, 18:13

For me the login btn is working
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.
aleequisa
Posts: 2
Joined: 16 Feb 2011, 04:53

Postby aleequisa » 23 Feb 2011, 09:24

How can you connect after using a router you dont want? I have a router and noticed my connection is slowed. I unplugged the router and reconnected my modem directly to the internet but I cant get connected. Only if I use my router, will I be able to connect to the internet but I dont want to use a router anymore. Anyways to help me out?
__________________
yahoo keyword tool ~ overture ~ traffic estimator ~ adwords traffic estimator
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 21 Jul 2011, 22:01

One other important thing to bear in mind:

Let's assume you have configured your SFS server to run on one of your 'dedicated' home machine behind a router on this following private/local IP address - say.. 192.168.2.10 and you have set up port forwarding to forward both socket (assumed to be 9339) and jetty port (assumed to be 8080) to that machine from your router.

And if you placed your application online and configured it to connect to the external/public IP address of your router (whatismyip.com) and have set up the ports accordingly. The external/public IP address is the IP address which can be seen from the 'outside' world. 218.101.12.50 is an example of a public/external IP address.

Then, if you try and run the (online) application from another computer (say.. 192.168.2.5) from within the same local network where the SFS server is currently located on, it won't work. This is because both port 9339 and 8080 were reserved for the 'dedicated' home computer, both incoming and outgoing. So basically other computers from within the same network won't be able to connect your SFS server via the external/public IP address.

So, to test if the online application work for other people outside your network, you will have to test it with a different network than your home network - providing that alternative network or its ISP isn't blocking port 9339 or 8080.

If you want to connect to your SFS server from a computer from within the same network, you would have to use its private/local port, which will be 192.168.2.10.

Lastly, make sure the firewall on your SFS server isn't blocking the required ports. One of the common mishap for your 'dedicated' home SFS server.

Savvy?
Smartfox's forum is my daily newspaper.
User avatar
henry0504
Posts: 22
Joined: 23 Dec 2012, 09:04
Location: Hong Kong
Contact:

Re: Behind-a-router help

Postby henry0504 » 21 Feb 2013, 11:28

...I dont know how to do step 3 !!! How to configure the NAT service ?
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Behind-a-router help

Postby rjgtav » 22 Feb 2013, 18:23

Hi

Is the machine which is running SFS behind a router? If so, there must be a page on the router's administration page which refers to its NAT. On some routers when configuring the port forwarding it also lets you to specify the internal IP of the machine, which is the NAT configuration.
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
henry0504
Posts: 22
Joined: 23 Dec 2012, 09:04
Location: Hong Kong
Contact:

Re: Behind-a-router help

Postby henry0504 » 02 Mar 2013, 09:52

User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Behind-a-router help

Postby rjgtav » 02 Mar 2013, 16:10

Hello,

I'd say that you can configure the Port Forwarding on the Local Server Mapping section.
What is the manufacturer of your router? I'm not being able to recognize the logo on Google..

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.
User avatar
henry0504
Posts: 22
Joined: 23 Dec 2012, 09:04
Location: Hong Kong
Contact:

Re: Behind-a-router help

Postby henry0504 » 21 Mar 2013, 05:38

my manufacturer of your router is BroadLanner

help pls!!!
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Behind-a-router help

Postby rjgtav » 21 Mar 2013, 15:10

Hello,

Could you also provide the model of the router? Sorry I forgot to ask that.
In the mean time, try checking this page from portforward.com, which tells how to port forward on a specific model of BroadLanner:
http://portforward.com/english/routers/ ... tguide.htm

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.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 54 guests