Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Maddy · Jul 20, 2010 at 09:28 AM · networksmartfoxsmartfoxserver

Need lot of help regarding starting with smartFox server or just any server ....

Hi,

I am experienced somewhat in making Games in general, but have no clue regaridng the network part. So, im a complete noob wrt to network stuff, and am aching to learn it

Can you guide me or point me in the right direction towards getting detailed/step-by-step instructions of setting up a simple .... client server app. say, client will send a number .... and server just will return a double of it.

I tried the following for now ....

  • Installed java (latest version) ..... and installed SmallFox server Lite.
  • Tried the sample ( i pasted the sample code at the end of the query for readability) ( I added the reference to the SmallFoxServerClient as well )
  • case 1 : when i havent started the smallfoxserver, and launched the script, i get the message saying .... Connection failed : I/O Error : connection refused

    case 2 : i started the small fox server ......... and then try to run the below script .... then i dont get any log message at all . not even connection successfull message!

    So, i dont know how to proceed further.

    Please can someone guide me through this?

    Sample Code i've tried ...:

    using UnityEngine; using System; using System.Collections; using SmartFoxClientAPI; using SmartFoxClientAPI.Data; using SmartFoxClientAPI.Util;

    public class network : MonoBehaviour { private static SmartFoxClient smartFoxClient;

     // Use this for initialization    
     void Start ()
     {
         SFSEvent.onConnection += handleConnection;
         smartFoxClient = new SmartFoxClient(true);
         if (smartFoxClient==null) 
         {
             Debug.Log("can't find connection");
             return;        
         }
    
         smartFoxClient.Connect("127.0.0.1", 9339);
     }
    
     private void handleConnection(bool success, string error) 
     { 
         if (success) 
         { 
             Debug.Log("Connection successful" );
         } 
         else 
         {
             Debug.Log("Connection failed : " + error);
         }
     }
    
    

    }

    Comment
    Add comment · Show 1
    10 |3000 characters needed characters left characters exceeded
    ▼
    • Viewable by all users
    • Viewable by moderators
    • Viewable by moderators and the original poster
    • Advanced visibility
    Viewable by all users
    avatar image Julian-Glenn · Jul 20, 2010 at 01:15 PM 0
    Share

    Are the correct ports open on your router? In this case 9339?

    1 Reply

    · Add your reply
    • Sort: 
    avatar image
    1
    Best Answer

    Answer by jashan · Jul 20, 2010 at 01:28 PM

    Have you looked at this forum posting:

    SmartFox/Unity Demo Issues

    Another resource that may help you: MMO tutorial on the Unifycommunity Wiki ... I'm a bit hesitant posting that link but while you shouldn't expect to be able to create an MMO "out of a simply quick tutorial" this should nevertheless give you some helpful insights.

    I guess the main problem with your setup is that you're using SmartFoxServer Lite. You need SmartFoxServer Pro or Basic.

    Or, you could look into Photon: Photon - they now have a free license for up to 50 concurrent users which should be fine to get started. They also have a simple MMO-style example that works with Unity on their Website.

    Comment
    Add comment · Show 3 · Share
    10 |3000 characters needed characters left characters exceeded
    ▼
    • Viewable by all users
    • Viewable by moderators
    • Viewable by moderators and the original poster
    • Advanced visibility
    Viewable by all users
    avatar image Maddy · Jul 20, 2010 at 01:35 PM 0
    Share

    Hmmm .... i'll check that, thanks

    avatar image Maddy · Jul 20, 2010 at 02:18 PM 0
    Share

    Yeah, installing the smartFox basic version solved the issue for me too .... thanks a lot

    avatar image jashan · Jul 20, 2010 at 03:41 PM 0
    Share

    Ah, thanks, I've edited the answer to also include "Basic".

    Your answer

    Hint: You can notify a user about this post by typing @username

    Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

    Follow this Question

    Answers Answers and Comments

    No one has followed this question yet.

    Related Questions

    Undertanding client/server stuff 2 Answers

    i need SFS help 1 Answer

    Smart Fox error 2 Answers

    MMO Player Hosting 0 Answers

    How can I connect unity to my smart fox server plugin 1 Answer


    Enterprise
    Social Q&A

    Social
    Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

    Footer

    • Purchase
      • Products
      • Subscription
      • Asset Store
      • Unity Gear
      • Resellers
    • Education
      • Students
      • Educators
      • Certification
      • Learn
      • Center of Excellence
    • Download
      • Unity
      • Beta Program
    • Unity Labs
      • Labs
      • Publications
    • Resources
      • Learn platform
      • Community
      • Documentation
      • Unity QA
      • FAQ
      • Services Status
      • Connect
    • About Unity
      • About Us
      • Blog
      • Events
      • Careers
      • Contact
      • Press
      • Partners
      • Affiliates
      • Security
    Copyright © 2020 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell My Personal Information
    • Cookies Settings
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Explore
    • Topics
    • Questions
    • Users
    • Badges