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 aastha · Apr 21, 2015 at 12:10 PM · networkingmasterserverportlocalhost

Unity intializeserver problem

I'm using unity 4.6.3p4 I have following code

void Start () {

     MasterServer.ipAddress = "127.0.0.1";
     MasterServer.port = 5055;
     portNo = MasterServer.port;
     Debug.Log (" ip " + MasterServer.ipAddress + " port " + MasterServer.port);
     initializeServer ();
 }

 private void StartServer()
 {
     Network.InitializeServer (2, portNo, !Network.HavePublicAddress());
     MasterServer.RegisterHost(typeName, gameName);
 }

It shows the error: Unknown message from master server (127.0.0.1:5055) 76 The connection request to 67.225.180.24:50005 failed. Are you sure the server can be connected to?

I am unable to understand the error as IPadress is "127.0.0.1". then why it is showing the error for "67.225.180.24".

How can I register my own server? On writing the IP address of my own server it shows the following error: Failed to initialize network interface. Is the listen port already in use? It's not possible to register a host until it is running.

Comment
Add comment · Show 6
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 _creatio_ · Apr 21, 2015 at 02:46 PM 0
Share

$$anonymous$$ay be you have a problem with socket security? A properly set up crossdomain.xml might help.

avatar image hbalint1 · Apr 21, 2015 at 09:32 PM 0
Share

the 127.0.0.1 just a local IP address on your LAN. the 67.225.180.24 is you remote IP adress. To be more specific: it's your router's IP address. Try this: http://whatismyipaddress.com . So if i want to join to your server i should connect to your router which has an unique IP address all over the world (67.225.180.24). But this is just your router and not your server. In your router you should open a port which will take me to your server. This is called port forwarding, you can google it. if you write your own remote IP address into a webbrowser's URL line and you made everything right, you should be able to connect it. some more info: if you open the 5055 port as you wanted, you should be able to connect in webbrowser like this: http://67.225.180.24:5055/

avatar image aastha · Apr 22, 2015 at 08:22 AM 0
Share

I registered masterserver on my own server but still the error is same and I am unable to open the link in webbrowser :(

avatar image hbalint1 · Apr 22, 2015 at 08:42 AM 0
Share

I'm using Photon, so i never had this problem maybe I'm telling you false info. So try this: http://forum.unity3d.com/threads/tutorial-hosting-your-own-masterserver.146774/ I hope it helps.

avatar image aastha · Apr 22, 2015 at 08:44 AM 0
Share

I also tried Photon but with unity IL2CPP, the photon build crashes sometimes. I am able to setup master server on my own server and port is also working but still I am not able to connect to server.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Changing the custom master servers default port ? 1 Answer

Network ports ranges. 1 Answer

Master Server and Faciliator connection 0 Answers

Unity Network manager to my own server. (Have my own site and have DNS to point to my IP and the resources how do i do this?) 1 Answer

Proper way to handle Master Server and NAT 0 Answers


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