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
1
Question by Loius · Apr 25, 2013 at 05:54 PM · networkingserverport

Networking - Must I tell my player-host to open a port?

I'm working with networking, and trying to work out a way to hide the fact that ports exist from the user as much as possible (because, let's face it, they'll mess it up! darn users).

I'm working with peer-to-peer connection right now (within Unity Networking, so a player assumes the role of server). Is there a way to, as a player-server, locate a usable port (which I would then report to the user or a master server or whatever so the clients would have access to it)? I'd like to tell my technically challenged users to "open up 192.168.1.1 and add 77777 to your UDP/TCP list" as infrequently as possible.

This seems like a question that would come up a lot, but my google-fu only brings up situations in which the server is under my own control. And serial ports. Lots and lots of serial ports.

Comment
Add comment · Show 5
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 Loius · Apr 29, 2013 at 05:41 AM 0
Share

i installed Warframe and it didn't tell me to open a port. there IS a way to do this. are they being tricksy?

avatar image Fattie · Apr 30, 2013 at 09:48 AM 0
Share

playerHost is an excellent ter$$anonymous$$ology to distinguish between playerHost, and "server 'on the internet' server" ("server 'on the internet' server" can either be a logical game host, or unrelatedly a "room offering host")

the distinction between these sundry concepts often causes huge problems on here. playerHost is very good news lexically.

avatar image Fattie · Apr 30, 2013 at 09:49 AM 0
Share

You will never get any help on this question, nobody knows :O

Congrats on 10$$anonymous$$ btw !

avatar image Loius · Apr 30, 2013 at 05:09 PM 0
Share

somewhere someone knows, because i once installed a program and then used it and never had to open ports for it

maybe everything i think is host-client is really host-server-client, but that seems... not true

thanks. I think someone bumped me up so i could wreak havoc on the moderation q, i was just at 8.8k last i knew. xD

avatar image Fattie · Apr 30, 2013 at 05:11 PM 0
Share

must have been some arrogant a-hole did that ;-)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Benproductions1 · May 20, 2013 at 02:23 AM

This may not be the answer you are looking for, but it might be helpful anyway.
Unity is extremely good at hiding special features for networking. If you open a server on a certain port, Unity implicitly requests your router to open that port. Most routers should be able to do this by default and you should have no problems opening a server and opening a port.
Unity also uses Nat Punshtrough to help with connecting properly through a firewall using the Masterserver etc. (I don't know how it works)

Generally I have just been able to send people by build, let them host, and it just works!

If that port is closed or blocked etc, you could have a couple of ports you use and are usually free, then try them iteratively.

Hope this helps,
Benproductions1

Comment
Add comment · Show 1 · 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 Loius · May 20, 2013 at 03:14 PM 0
Share

Hm, maybe I just have paranoid settings on my hardware x)

I'll try that, thanks. :)

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

14 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

Related Questions

Unity networking tutorial? 6 Answers

Unity multiplayer over internet does not work using port forwarding 1 Answer

How to watch in client applications what it is happening in the server one? 0 Answers

Network and Server options 0 Answers

Do RPC calls get sent through Master Server or directly to the other client? 2 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