Comments (2)
Let me try to help you work through this... are you trying to connect to the server from another system to check that the port is open? If so, that's probably what the issue is for you - by default, we listen on 127.0.0.1
for security purposes. This prevents other people from connecting to your open port while you are developing, with the idea being that you would change that when you are ready to release or do multi-system testing. You can enable remote connections by checking the "Allow Remote Connections" box in the Unity Transport component on your NetworkManager object.
On the last thing you mentioned - the return value from the call to StartClient()
is not actually very useful. Our connection logic all happens asynchronously, so that return value only says we successfully STARTED the connection process. I believe you can check for a failed connection by registering for the OnClientStopped
callback in NetworkManager
, though I may be wrong about that... note that that will also happen any time the client disconnects or shuts down for any other reason as well.
Let me know if any of that helps out. If not I'll try to help you debug further.
from com.unity.multiplayer.docs.
This issue has been open for a while now without any further feedback, so I'm going to close it. Feel free to reopen if you want more help!
from com.unity.multiplayer.docs.
Related Issues (20)
- Feedback for docs/tutorials/get-started-with-ngo.md
- 2Feedback for docs/about.md
- Feedback for docs/advanced-topics/message-system/rpc.md HOT 5
- Feedback for docs/tutorials/testing/testing_with_artificial_conditions.md HOT 2
- Feedback for docs/basics/object-spawning.md HOT 1
- Feedback for transport/workflow-client-server-udp.md
- Feedback for docs/tutorials/get-started-with-ngo.md HOT 1
- OnGainedOwnership and OnLostOwnership
- Feedback for docs/learn/rpcvnetvar.md HOT 5
- Feedback for docs/advanced-topics/serialization/serialization-arrays.md
- NetworkObject DANGER box message is highly confusing HOT 1
- NetworkBehaviour introduction paragraph contains redundancy HOT 1
- Unclear: Start NetworkManager in Awake can have "undesirable results"
- Client code bug in page "Create a secure client and server"
- DefaultNetworkPrefabs was clear sometimes
- Feedback for docs/about.md HOT 1
- Feedback for mppm/install.md
- Feedback for docs/advanced-topics/serialization/serialization-intro.md HOT 1
- Feedback for docs/learn/distributed-authority-quick-start.md HOT 1
- Feedback for docs/basics/scenemanagement/inscene-placed-networkobjects.md - Broken link HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from com.unity.multiplayer.docs.