Well guess you recently seen me asking about problems simular to this except it was on smartfox 1.6.6 with the 1.6.9 patch.I updated to Smartfox 2x and now im having troubles.I can access the game with my internal ip but someone from outside cant get the method of using my external ip to log in.This is how i did it before on older versions.
Smartfox 2x is different and may have something im missing.
I have my port forwarded to 9933,i have my server.xml file set to my internal ip(192.168.0.102) and i have all the settings inside the admintool panel set up right i think…images below show how i have everything setup right now.
I cant think of anything else i need to change so the other people outside my router can connect with my external ip.
Once the SFS server has your interface IP set up, the rest is purely down to firewall configuration + NAT
Your box where you host your SFS most likely has a firewall installed. You need to open that up for UDP/TCP 9933
Additionally your router/external firewall must be setup to NAT your external IP and 9933 to your local address.
There is nothing special in this in regards to SFS2X. Its all the same as for any other net based service.
/Thomas
The image on the right shows you i have them open.I have the router port forwarded…same thing as NAT.
What do you mean by BOX?I host SFS on my computer.
Good - can someone from the outside telnet to the port?
Box - computer - server. If you host your SFS server on your local machine - and especially if its a windows machine - then you need to open the UDP+TCP port in your windows firewall too. Else everything outside your own local development simply be blocked.
/Thomas
Well if someone trys to log into my multiplayer game using my external ip it doesnt log them in.
The windows firewall is disabled because i use zone alarm.And i cant find any udp or tcp going on in zone alarm.Also like i said i have another game running on smart fox 1x and it runs fine with my firewall up.
On the smartfox server they are saying i have to put a socket address(not an ip)into the socket address configurator in the admin tool.
I did my research and a socket address is the combination of an external ip and a port combined into an encryption.I cant find any tutorial on how to make this.Do you know how to help?
Indulge me - what does it say when someone tries to telnet to your external ip and port with telnet? Not talking game clients - telnet! Alternatively give me the server ip and port and I can try from here.
Try to turn it off temporarily and try. Just because there is no option to do it, doesnt mean your firewall lets things through. Especially UDP packets have a tendency to get blocked even when you think they are not.
Simple test - turn off, try to connect. Turn on again.
“they”?
You need to do what you’ve done in the screenshots and nothing else. Add the ip of your server. Add the port. Specify if its UDP or TCP. No other magic required, and the ip to add is the network interface card in your machine. Not the external ip on your router.
Total gibberish in my ears. You’ve done what you have to. Forget everything about encryption or whatever.
In general this setup is done hundreds and thousand times by others. Its something local blocking your port - most likely the firewall on your windows box. Thats where I would put my money - unless your machine doesnt have the ip 192.168.0.102. Then the problem is that your IP changed on your machine. Or that is has multiple netcards and you only added one that isnt on your net
/Thomas
Ok i see.Hmm yea i asked for help on the forum and thats what one person has been saying but i never could find any tutorials on how to do it so i kinda figured he was wrong…
The ip is 68.52.11.41 and the port is 9933
Now that ip is my external ip its the ip ive always used for networking and never known different.Are you saying there is an ip on my network card i should give you?
Here is an old (but apparently still valid) instruction on how to open ports with zonealarm:
http://icrontic.com/forum/showthread.php?t=3304
/Thomas
Ok thanks i opened the port.On the fire wall so you can go ahead and check and see if you can telnet.It asked me for a proxy server,i put my external ip(68.52.11.41) into that area.
The port is blocked. Most likely firewall or nat configuration.
Did you try turning off zonealarm?
If that still doesnt work, get me the following:
- SFS2X/config/server.xml file
- the startup log of the SFS server
- open a command window and type ipconfig. Paste me the output from that
If you dont want these things public, simply PM me these things
I just wanna go ahead and say i appreciate the help.Your the only one being nice enough to just put your time out there to help…I will send you a pm soon.
Anytime anytime - and I’m even doing on my own time, so not even getting paid for it 
So you owe me a beer when we meet 
Where can i get the startup log?The info that pops up and scrolls by as the server is starting up in the command prompt looking window?How do i copy that info?
Yeah - that part. What I’m looking for is this part:
00:00:48,178 INFO [main] v2.SmartFoxServer - Listening Sockets: { 192.168.118.1:9933, (Udp) } { 10.0.1.12:9933, (Udp) } { 127.0.0.1:9933, (Udp) } { 192.168.118.1:9933, (Tcp) } { 10.0.1.12:9933, (Tcp) } { 127.0.0.1:9933, (Tcp) }
00:00:48,178 INFO [main] v2.SmartFoxServer -
| | | | | | | |
| | | | | _|- -|
||| || |||__|
| __ | | _ | | | |
| -| | | | | _|
||||||___/ ||
[ 2.0.0-RC1c ]
00:00:48,179 INFO [main] v2.SmartFoxServer - SmartFoxServer 2X (2.0.0-RC1c) READY!
Ok thanks!I pm’ed the info.
Anytime.
The server.xml looks fine - and it fits your interface IP. The startup log has some weird entries that I have no idea where they come from:
17:57:56,251 WARN [main] bootLogger - Was not able to bind socket: { 68.52.11.41:9933, (Tcp) }
17:57:56,253 WARN [main] bootLogger - Was not able to bind socket: { 68.52.11.41:9933, (Udp) }
Because those are not listed in your server.xml so it should not bind to them. It does bind to your local ip and thats whats important.
So in short, the SFS part looks to run fine and is configured ok.
So we are back to firewalls and network routing again.
Do you have by any chance both zonealarm and windows firewall running? And did you try to run without zonealarm?
And here is the question of the day - you are 110% certain that 68.52.11.41 is your external IP?
(I’m off to bed now - will check back tomorrow)
Oh i see where the “was not able to bind socket came from”
I had that in the server.xml when i booted the server about hour ago but then removed it and never restarted the server.
Yes im 110% sure thats it because i went to my router login and checked a while ago.Also it works to long into my other game.
I just shut zone alarm off so you can try and telnet again.
Ha!I just shut zone alarm off and tried logging into my game.It worked.Awesome!So now to figure out the firewall issue…I think i can handle that by myself.Thanks again for the help you have releaved me from stress.And i still dont know where that dood got all that other junk.