• 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
1
Question by fantom642 · Jul 13, 2015 at 11:11 AM · networkinglobbyunity multiplayerip

[UNET] Is there an alternative for MasterServer.RequestHostList in UNET?

Is it possible to advertise and discover server IP address?

In other words, is there a way how to get a list of available servers (or their IPs) in local network without knowing their IP addresses in advance?

As far as I know, right now, the remote client needs to know the IP of the server. I want to remove that burden from the user and just give them a list of servers that are available to choose from.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by g-pechorin · Jul 13, 2015 at 11:43 AM

Look to the olde-ways of the pagans

Not sure about UNET, but if ...

  • You (or UNET) can dip in/out of sockets
    • I'm not suggesting you implement the whole darn game as broadcast packets - just the discovery bits

    • ... might not "jive" with Unity-on-a-shoebox

  • your user's network doesn't block broadcast packets
    • I think ... Napster? Kazzaa? used broadcast packets

    • ... so some admins liked to block them - not sure if this is still in-vouge

    • if the free router that came from your ISP doesn't block them I'd say go for it

    • ... and a locked-down network probably will block games anyway - right?

... so you have servers/unity-app/whatnot;

  • shout "I'm a game" every X time intervals when they want connections

  • have your unity-app listen for "I'm a game" messages and add the senders to a list

  • drop list entries that're too old

... that would do it ... right?

Comment
Add comment · Show 2 · 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 fantom642 · Jul 13, 2015 at 11:55 AM 0
Share

If I knew how to send packets that could be received by anyone around that would be simple indeed. I've tried AllJoyn, but even that didn't work in 100% of cases. What I'm looking for is rather some built-in solution that comes within UNET (if it even exists).

avatar image fantom642 · Jul 13, 2015 at 02:04 PM 0
Share

I have changed my question to be more specific

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Local IP adress in UNet 4 Answers

How to Destroy NetworkLobbyManager 1 Answer

How to make GUI update for all players in a networked game? 1 Answer

[UNet] How I can send Command to non-player object? 1 Answer

[UNET] How to handle disconnection? 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