ray icon indicating copy to clipboard operation
ray copied to clipboard

Laravel Ray License Activation Issues Over SOCKS5 Proxy

Open marijnbent opened this issue 1 year ago • 2 comments

Before creating a new bug report Please check if there isn't a similar issue on the issue tracker or in the discussions.

If you are having troubles connecting your project to Ray, please check our docs first, especially the configuration and environment specific configuration sections.

Describe the bug Laravel Ray License activation prompts are persistently appearing in my unique network environment which utilises a SOCKS5 proxy. I have previously activated my Laravel Ray license, however, now the license activator pops up every time I launch the app. This interrupts my usual development workflow and is causing frustration.

Versions Ray version (you can see this in "About Ray"): 2.5.1

You can use composer show to get the version numbers of:

  • spatie/ray package version:
  • spatie/laravel-ray package version (if applicable):

To Reproduce In my case, the bug is reproduced when using a SOCKS5 proxy. Here are the steps:

  1. Set up a SOCKS5 proxy on iOS device with Pythonista installed, running a SOCKS5 server script, which shares the mobile internet connection with other devices.
  2. Launch Laravel Ray on any device using the SOCKS5 proxy connection.
  3. See the license activator pop up.
  4. When clicking the Activate button, after x seconds the following message appears: "The license server gave an unexpected response, please try again"

Expected behavior Upon successfully activating the license once, I expect to be able to use Laravel Ray without having to go through the license activation process every time the application is launched. The license activation prompts should not interfere with the normal usage of the application after successful activation.

Screenshots If applicable, add screenshots to help explain your problem. Screenshot 2023-07-26 at 15 14 48

Desktop (please complete the following information):

  • OS: macOS

Additional context So here's the deal: I'm running a pretty unique setup using a SOCKS5 proxy to share my mobile internet connection with my other devices, a trick I call 'fake-tethering'. It's a workaround I came up with because Google Fi doesn't support tethering on iOS. The cool thing about this is that it lets me bypass any tethering restrictions and speed limits set by my carrier.

This SOCKS5 setup doesn't just proxy web stuff, but pretty much any TCP connection, which comes in really handy for my development work. For example, I can proxy an SSH connection like so:

ssh -o ProxyCommand='nc -X 5 -x <IP>:9876 %h %p' user@host

I've also set it up for git like this:

$ https_proxy=socks5://172.16.20.1:9876 git clone https://github.com/nneonneo/iOS-SOCKS-Server

It's pretty neat! But here's where I hit a snag - my Laravel Ray license. I've activated it before, but now the license activator pops up every time I launch the app. It's really putting a damper on my dev process and causing me some frustration.

I get that the license check is probably for security, but it seems to be having some unintended consequences with my setup.

So, could you give me a hand with this? Is there a way to validate my license that'll play nice with my setup? Or maybe there's an alternative method or a workaround I could use?

marijnbent avatar Jul 26 '23 13:07 marijnbent

I continually get the license activation prompt on Mac OS Ventura 13.5.1 as well but am not running a special proxy server. I have to delete the license on the Ray website license manager and then re-activate almost daily.

ronfuller avatar Sep 02 '23 17:09 ronfuller

I don't use any proxy or VPN and still get the same error on activating the application:

The license server gave an unexpected response, please try again

majidsmileitsolutions avatar Dec 13 '23 15:12 majidsmileitsolutions

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

spatie-bot avatar Apr 15 '24 10:04 spatie-bot