How to configure Public IP in smartfox server and web server

Submit all your BlueBox related questions or report a bug here!

Moderators: Lapo, Bax

smartwolf
Posts: 4
Joined: 15 Oct 2008, 09:39

How to configure Public IP in smartfox server and web server

Postby smartwolf » 15 Oct 2008, 10:53

Hi all,

Am trying to set a public IP for smartfox server and web server, so that i can run my flash games from any system in the internet. The system which i configured to Public IP should work as a server. Remote systems should able to access the public IP and should connect to the smartfox flash games.

Below are the few steps i followed to configure the public IP to smart fox and web server.
I made few changes in config.xml, jetty.xml and bluebox.properties.

In config.xml..

<SmartFoxConfig>

<ServerSetup>
/* here am giving my public IP */
<ServerIP>***.**.***.**</ServerIP>
<ServerPort>9339</ServerPort>

<AutoSendPolicyFile>true</AutoSendPolicyFile>
<MaxUserIdleTime>300</MaxUserIdleTime>



In Jetty.xml...

<Call name="addConnector">
<Arg>
<New class="org.mortbay.jetty.nio.SelectChannelConnector">
/* Here i set my web server port as 84 */
<Set name="port"><SystemProperty name="jetty.port"
default="84"/></Set>
<Set name="maxIdleTime">30000</Set>
<Set name="Acceptors">2</Set>
<Set name="confidentialPort">8443</Set>
</New>
</Arg>
</Call>


In bluebox.properties....

log_level=FINER
log_folder=./logs/
log_max_size=100000
log_max_files=5

# Can be embedded or stand-alone
serverMode=embedded

# These 2 are available only in stand-alone mode
/* Here i gave my public ID */
sfsAddr=***.**.***.**
sfsPort=9339

# This value should always be > 20. A value of 30 is recommended.
client_idle_time=30
client_idle_request_time=300

# Allows runtime debugging
# You can point the browser to -> http://hostname:port/BlueBox/HttpBox.go?debugCmd=main
debug_mode=true


Now here my problem is, i could able to run(in a browser) a simple chat application using blue box and jetty webserver in the system where i configured my public ip.
Same chat application dont work when i try to run from another system(This system dont have smartfox server) using same public ip. It is not connecting to the smartfox server of the public IP system.



Please help me to sort out this problem

Regards
maddy
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 15 Oct 2008, 12:23

Now here my problem is, i could able to run(in a browser) a simple chat application using blue box and jetty webserver in the system where i configured my public ip.


What is the "system" where you configured the public IP? You mean from the local network?
Can you tell me the public IP?
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 9 guests