How can someone using another PC access my game?
-
- Posts: 26
- Joined: 18 Apr 2009, 15:27
How can someone using another PC access my game?
I have smartfoxserver running on my Home PC.
How can someone using another PC play my game ?
How can someone using another PC play my game ?
-
- Posts: 26
- Joined: 18 Apr 2009, 15:27
The port information? It is whatever you set it to in the config.xml, default is 9339. Not sure if there are sfs docs for it as it is unrelated, it is like setting up a webserver on your pc etc. You do need to set the ServerIP tag (if you have the latest sfs version) to the ip you want to allow to connect, or * for anyone to connect.
Gnoll
Gnoll
-
- Posts: 26
- Joined: 18 Apr 2009, 15:27
I have the same problem and my router doesn't have the nat service option. You need to create a nat service:
read this http://www.smartfoxserver.com/forums/viewtopic.php?t=306
read this http://www.smartfoxserver.com/forums/viewtopic.php?t=306
-
- Posts: 26
- Joined: 18 Apr 2009, 15:27
I appreciate the link you sent but is seems extremely complicated.
what is the point of the 20 user license?
why are there no directions on how to allow the "20" users to access the game?
so I created a game, got the server running and they give no directions on how to actually let another person play the game?
what is the point of the 20 user license?
why are there no directions on how to allow the "20" users to access the game?
so I created a game, got the server running and they give no directions on how to actually let another person play the game?
http://portforward.com/
Assuming you are still using the default port (9339) you will need to port forward this on your router, there are some guides on this website and it explains port forwarding, you may also want to add port 80 (For the webserver)
Good luck,
Gnoll
Assuming you are still using the default port (9339) you will need to port forward this on your router, there are some guides on this website and it explains port forwarding, you may also want to add port 80 (For the webserver)
Good luck,
Gnoll
-
- Posts: 26
- Joined: 18 Apr 2009, 15:27
I have two SFS folders:
ClientSide
ServerSide
Does the ClientSide folder go in my webhosting folder?
The second person will access the game using:
www.mywebsite.com/ClientSide/MyGame.html
I am assuming the ServerSide stays on my home PC?
ClientSide
ServerSide
Does the ClientSide folder go in my webhosting folder?
The second person will access the game using:
www.mywebsite.com/ClientSide/MyGame.html
I am assuming the ServerSide stays on my home PC?
-
- Posts: 26
- Joined: 18 Apr 2009, 15:27
OK
I appreciate the help.
I am making progress.
SUCCESSFUL:
I uploaded the ClientSide folder and I was able to play the game through a webpage on my webserver with the IP set locally (127.0.0.1)
NOT SUCCESSFUL:
When I changed the ip addresss to MY ip address I was unable to login to play the game.
<SmartFoxClient>
<ip>127.0.0.1</ip>
<port>9339</port>
<zone>ChatZone</zone>
<debug>false</debug>
<blueBoxIpAddress>127.0.0.1</blueBoxIpAddress>
<blueBoxPort>9339</blueBoxPort>
<smartConnect>true</smartConnect>
<httpPort>8080</httpPort>
<httpPollSpeed>750</httpPollSpeed>
<rawProtocolSeparator>%</rawProtocolSeparator>
</SmartFoxClient>
I appreciate the help.
I am making progress.
SUCCESSFUL:
I uploaded the ClientSide folder and I was able to play the game through a webpage on my webserver with the IP set locally (127.0.0.1)
NOT SUCCESSFUL:
When I changed the ip addresss to MY ip address I was unable to login to play the game.
<SmartFoxClient>
<ip>127.0.0.1</ip>
<port>9339</port>
<zone>ChatZone</zone>
<debug>false</debug>
<blueBoxIpAddress>127.0.0.1</blueBoxIpAddress>
<blueBoxPort>9339</blueBoxPort>
<smartConnect>true</smartConnect>
<httpPort>8080</httpPort>
<httpPollSpeed>750</httpPollSpeed>
<rawProtocolSeparator>%</rawProtocolSeparator>
</SmartFoxClient>
-
- Posts: 26
- Joined: 18 Apr 2009, 15:27
They are seperate.
I replaced the "127.0.0.1" with my home IP in the client side config.xml
I was not able to connect - I pressed the connect button and nothing happened
SUCCESSFUL:
I uploaded the ClientSide folder and I was able to play the game through a webpage on my webserver with the IP set locally (127.0.0.1)
NOT SUCCESSFUL:
When I changed the ip addresss to MY ip address I was unable to login to play the game.
I replaced the "127.0.0.1" with my home IP in the client side config.xml
I was not able to connect - I pressed the connect button and nothing happened
SUCCESSFUL:
I uploaded the ClientSide folder and I was able to play the game through a webpage on my webserver with the IP set locally (127.0.0.1)
NOT SUCCESSFUL:
When I changed the ip addresss to MY ip address I was unable to login to play the game.
-
- Posts: 26
- Joined: 18 Apr 2009, 15:27
You will not be able to access your game on the same computer as which the server is running, (on the external ip address anyway) I believe this is known as loopback error.
Assuming you are on windows... Go to C:/Windows/System32/etc/hosts, add a line to the bottom saying
localhost xx.xx.xx.xx
xx.xx.xx being your external ip.
It could be xx.xx.xx.xx localhost , compare to entrys that are already there.
Good luck,
Gnoll
Assuming you are on windows... Go to C:/Windows/System32/etc/hosts, add a line to the bottom saying
localhost xx.xx.xx.xx
xx.xx.xx being your external ip.
It could be xx.xx.xx.xx localhost , compare to entrys that are already there.
Good luck,
Gnoll
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 68 guests