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 NikEy · Dec 27, 2013 at 08:00 AM · networktraffic

Observing network traffic, bytes received, bytes sent

Hi all,

I was wondering if it is possible to observe the network traffic generated by Unity via script? I'm not worried about the usage of the average Joe, but in order to protect against people that generate too many requests (and thus too much network data), I need to monitor the bytes received/sent for each connection. Just counting the RPC's is insufficient unfortunately.

Any help is appreciated. Thanks

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by sparkzbarca · Dec 27, 2013 at 02:25 PM

IM not at all an expert but id be fairly certain you'd use a 3rd party software program listening in on the port there connecting to you from and then if you have multiple connections from many users in that port monitoring it by IP.

I think if you want to bash someone from flooding your server with requests your going to want to use network software not unity at all.

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 NikEy · Dec 27, 2013 at 07:32 PM 0
Share

hm, thanks. Using external programs is always an option, but I was kinda hoping for a Unity implementation =/ After all, this is captured in Unity itself within the built-in player... it would seem just prudent to offer the option via script.

avatar image sparkzbarca · Dec 27, 2013 at 07:38 PM 0
Share

my response if I was unity would be.

A. any code we write must be maintained through versions and must be written. Writing and maintaining this code takes away from time that could be spent on core functionality.

B. any script we hacked up wouldnt be as user friendly or allow as much fine control or function as well as a dedicated 3rd party application

C. there are numberous free 3rd party applications which perform this service and do so to a much better level.

im not saying it wouldnt be nice to have, but of course everything is a trade off, I just think they wouldnt find it worth paying an programmer 60 bucks an hour to code up for there game engine program. Just my opinion of course.

avatar image
0

Answer by Bertlapp · May 11, 2018 at 09:11 PM

Unity 2017 and earlier (?) has a profiler under window-> profiler Here you can see your network activity if you scroll down to Network messages / Network operations

I'm not sure you can monitor the actual bytes send. But it gives a good estimation of how many load you put on your network.

Regards

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

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

20 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

Related Questions

Convert from C# To Java ????? 1 Answer

How to get current NetworkPlayer from a script belonging to it ? 3 Answers

Unknown viewID errors with Object.Instantiate 1 Answer

Different Player Colours (Multiplayer) 1 Answer

Run my scene in various system using netwok 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