Prioritizing one app's net access over another

  • #1
DaveC426913
Gold Member
21,389
4,857
TL;DR Summary
Is it possible to tell my network to prioritize my browser above my VPN?
I'm tunneling into my corp's webclient. Every time it wants to do something, it overrides my spotify in my local (untunneled) browser - resulting in my music stuttering constantly).

I'm using 'Global Protect' to tunnel into vdi.[mycorp]/portal/webclient/...

Though it might solve the problem, I am loathe to open Spotify inside my vpn.

Suggestions?

#FirstWorldProblems
 

Answers and Replies

  • #2
pbuk
Science Advisor
Homework Helper
Gold Member
4,042
2,373
Is this your own device (i.e. do you have administrator privileges) or work's?
 
  • #3
DaveC426913
Gold Member
21,389
4,857
Is this your own device (i.e. do you have administrator privileges) or work's?
My personal lappie.
 
  • #4
DaveC426913
Gold Member
21,389
4,857
It just occurred to me that I'm using the browser for both applications, just different tabs. One tab is Spotify, the other tab is the webclient.

I'm not sure of that means I need to prioritize one browser tab's pipeline over the other.


Total network throughput seems not to be an issue. 170Mb/s down, 130Mb/s up.
 
  • #5
Vanadium 50
Staff Emeritus
Science Advisor
Education Advisor
29,610
15,079
It could be the laptop running out of one resource or another, or it could be the network switch (do you own that too?) Can you do anything to narrow the bottleneck down?
 
  • #6
DaveC426913
Gold Member
21,389
4,857
It could be the laptop running out of one resource or another, or it could be the network switch (do you own that too?) Can you do anything to narrow the bottleneck down?

1. If I don't fiddle with the webclient for a bit, the stuttering peters out. If I Disconnect from 'Global Protect' it stops stuttering completely.

2. I watched my performance tabs in Task Manager. During the smallest activity within the webclient (such as moving a window around), network access hits 100% immediately, and stays there until it drops back near zero.

Aaaand of course, now that I say that, it makes me a liar by not doing it.

1614624309095.png
 
Last edited:
  • #7
14,194
8,184
There is likely some sort of heartbeat signal to help the VPN decide if you're still there. I had this happen with Youtube audio not working through MS remote desktop for some browsers.

However, it appears that this is a known problem that Spotify doesn't work with a VPN. Some suggest it's because of copyright issues in different regions of the world.

https://windowsreport.com/fix-vpn-wont-work-spotify/

https://community.spotify.com/t5/De...through-a-US-gt-US/m-p/5016688/highlight/true

Ease your aggravation, use your phone as a music source :-)
 
  • #8
DaveC426913
Gold Member
21,389
4,857
There is likely some sort of heartbeat signal to help the VPN decide if you're still there. I had this happen with Youtube audio not working through MS remote desktop for some browsers.

However, it appears that this is a known problem that Spotify doesn't work with a VPN. Some suggest it's because of copyright issues in different regions of the world.
Yeah but I'm not running Spotify through the VPM; I'm running it locally.

But the troubleshooting list pointed me in a useful direction though: installing the Spotify app instead of the website. And that I can allow through my Firewall.



Ease your aggravation, use your phone as a music source :-)
I'd burn through my data in a week.
 
  • #9
Vanadium 50
Staff Emeritus
Science Advisor
Education Advisor
29,610
15,079
Your router might be able to prioritize Spotify via its QOS settings, provided a) the router supports it and b) the router let's you into the menu. (If its owned by your ISP, it may not)
 
  • Like
Likes jim mcnamara
  • #10
pbuk
Science Advisor
Homework Helper
Gold Member
4,042
2,373
But the troubleshooting list pointed me in a useful direction though: installing the Spotify app instead of the website. And that I can allow through my Firewall.
That was going to be my next suggestion (having determined that this is your device so you can do that).

If that doesn't solve it then yes, you can do this in your router's Quality of Service (QoS) configuration but it is not trivial.

If that is not possible/desirable then you can't change the priorities in Windows directly, but there are third party applications that can do this such as NetLimiter.
 
  • #11
DaveC426913
Gold Member
21,389
4,857
A quick Google (now that I know what terms to use) shows how I can give Spotify priority access in Task Manager (Details tab > Rgt-click Spotify > Set Priority).

I have to give it "real time" access (the highest) and it's still not perfect, but it'll do.

Thanks all.
 
  • #12
pbuk
Science Advisor
Homework Helper
Gold Member
4,042
2,373
A quick Google (now that I know what terms to use) shows how I can give Spotify priority access in Task Manager (Details tab > Rgt-click Spotify > Set Priority).
That just gives it CPU priority which is not much help if the VPN is hogging all the network bandwidth, as you have found.
 
  • Like
Likes Vanadium 50
  • #13
Vanadium 50
Staff Emeritus
Science Advisor
Education Advisor
29,610
15,079
Let's take a step back. The problem isn't CPU priority or network priority or any of that. The problem is Spotify is stuttering.

The "classic" solution to this is buffering. Does Spotify have a buffering setting? If so, try doubling it and seeing if it is better.

Before adjusting CPU and network settings, is it the CPU? Is it the network? Task Manager/Performance can help you understand where the bottleneck is. For example, I can copy files to my file server at 170 MB/s or so, and from the server at 330 MB/s or so. In neither case is the network or CPU the bottleneck. (Writing is at the speed of the disk array, and reading is at the speed of the SSD cache)

If it's the network, we will need to better understand where in the network, but we can cross that bridge when we come to it.
 
  • #14
DaveC426913
Gold Member
21,389
4,857
That just gives it CPU priority which is not much help if the VPN is hogging all the network bandwidth, as you have found.
Ah. Right. I'm no longer on the 'Network' tab. Oops.

The "classic" solution to this is buffering. Does Spotify have a buffering setting? If so, try doubling it and seeing if it is better.
Well I'll be a monkey's uncle - it does.

OK, I will experiment with this tomorrow.

Everything's behaving perfectly as of this moment - no stuttering - perhaps because my wife isn't streaming her news right now.
 
  • #15
Vanadium 50
Staff Emeritus
Science Advisor
Education Advisor
29,610
15,079
perhaps because my wife isn't streaming her news right now.

You mean you're competing with your wife for bandwidth? Bad idea.
 

Suggested for: Prioritizing one app's net access over another

Replies
10
Views
486
Replies
23
Views
1K
  • Last Post
Replies
6
Views
550
Replies
9
Views
267
Replies
27
Views
2K
Replies
1
Views
865
Replies
6
Views
583
Top