Prioritizing one app's net access over another

  • Thread starter Thread starter DaveC426913
  • Start date Start date
  • Tags Tags
    Net
AI Thread Summary
The issue discussed revolves around the stuttering of Spotify music playback when using the Global Protect VPN to access a corporate web client. The user experiences this problem because both applications are running in the same browser, leading to potential bandwidth conflicts. Disconnecting from the VPN resolves the stuttering, indicating that the VPN may be monopolizing network resources. Performance monitoring reveals that even minor actions in the web client can spike network usage to 100%, suggesting a bottleneck. While some users recommend using the Spotify app instead of the web version and adjusting firewall settings, others suggest prioritizing Spotify through router QoS settings or using third-party applications like NetLimiter for network management. Buffering settings within Spotify may also help alleviate the issue. The discussion highlights that competing for bandwidth with other devices, such as streaming news, can exacerbate the problem. Overall, the conversation emphasizes the need to manage network resources effectively to improve the streaming experience while using a VPN.
DaveC426913
Gold Member
Messages
23,830
Reaction score
7,816
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
 
Computer science news on Phys.org
Is this your own device (i.e. do you have administrator privileges) or work's?
 
pbuk said:
Is this your own device (i.e. do you have administrator privileges) or work's?
My personal lappie.
 
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.
 
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?
 
Vanadium 50 said:
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:
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 :-)
 
jedishrfu said:
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.
jedishrfu said:
Ease your aggravation, use your phone as a music source :-)
I'd burn through my data in a week.
 
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
DaveC426913 said:
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
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
DaveC426913 said:
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
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
pbuk said:
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.

Vanadium 50 said:
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
DaveC426913 said:
perhaps because my wife isn't streaming her news right now.

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