Must restart computer to run expo bundler in tunnel mode every time I want to restart it? - react-native

Running expo bundler for react native in tunnel mode with expo start --tunnel only works the first time I run it after a fresh restart of my computer. Then, if for some reason I close the cmd prompt that is tracking expo and open another, running the same command gives this error:
Error starting tunnel could not connect to TCP port 5562: cannot connect to 127.0.0.1:5562: No connection could be made because the target machine actively refused it. (10061)
I think there has to be an easy way to resolve this since restarting works. Does anyone know where to start?
I've checked the following threads to no avail:
could not connect to tcp:5037: cannot connect to 127.0.0.1:5037: No connection could be made because the target machine actively refused it. (10061)
https://pisquare.osisoft.com/thread/42096-could-not-connect-to-nettcpwin-fvo35t9cv2q5457afserverservice-the-connection-attempt-lasted-for-a-time-span-of-0000020312902-tcp-error-code-10061-no-connection-could-be-made-because-the-target-machine-actively-refused-it-1921681691285457

Related

Can you use the LAN option to connect your phone to an Expo project when using WSL2?

I have created a new app using expo init <app_name>.
When I lunch it using sudo expo start, the LAN does not work, I get Connection response timed out
My setup is WSL2 + Ubuntu 20.04, and the PC has no WiFi, but my phone is connected to the same home network via WiFi.
I've tried many of the solutions provided by posts here and other forums, including some scripts to forward ports, but none of them worked. The tunnel option does work

Pycharm Remote Dev using SFTP with Yubi Key authentication

I have PyCharm Pro. I am trying to do remote development on a server. I have read the following Jetbrains tutorials:
Deploying Applications
Remote Development on Raspberry Pi
as well as the very helpful tutorial:
Remote debugging with pycharm the missing tutorial
While I seem to be able to set everything up, authentication fails when I try to connect to the remote server using the 'SFTP' protocol. I can make an SSH and SFTP connection from the CLI in a terminal so I know the ssh configuration settings are correct. However, in my case authentication requires ssh and having a Yubi key connected to my laptop. Does that make a difference?
Has anyone had a similar issue? If so, how did you resolve it?
On MacOS the challenge is where the IDE is getting it's ssh socket agent. To make this work in my case I have to launch the PyCharm Pro IDE from a terminal.
Go to '/Applications/PyCharm.app/Contents/MacOS' directory and launch with './pycharm'

Pycharm cannot finish updating skeletons

I'm newly moving from a Linux working environment to Windows, and I'm mainly using local port forwarding+Pycharm to run my python code on a server that is double-hop from my laptop.
I am able to establish the ssh tunnel through Windows cmd or MobaXterm local terminal or MobaXterm tunneling tool. I works fine on my Pycharm, when I check it from tools/deployment/configuration/test connection, and I can also see the files in remote server. But every time I start my Pycharm, it shows two background process, "updating python interpreter" and "updating pycharm helper", and the precess bar simply do not show any moving on! And I cannot run python on remote server, because Pycharm says I lack python helper.
And most wired, when it is running these two precess, my terminal for local port forwarding freezes, and I cannot type in commands in the jump server. And when I try to recheck the connection, it turns out that connection fails.
My ssh tunneling+pycharm deployment used to work fine in my Ubuntu. Thanks anybody who can shed light on my confusion!
Well, thanks everyone, I have solved this problem.
The reason is simple, but I did not notice that the ~/.pycharm_helper 's size is actually changing in the process, while the GUI bar may be not moving.
So it is due to my double-hop inconvenience, and the low Internet speed. I left it in dorm for a whole night out, and it comes out just fine.

macos unable to connect to L2TP server

I'm trying to connect my macOS (10.14.4) to L2TP server, but my Mac just pop up a window:
VPN Connection
Your connection failed because of an incorrect PPP setting. Verify your settings and try reconnecting.
photo
I have tried using my iphone to connect L2TP server and it worked perfectly (in the same local network).
Did anyone get the same issue before?
Delete your /etc/ppp/options and try to run this command.
sudo bash -c 'echo "plugin L2TP.ppp">>/etc/ppp/options'

Can't run expo project on LAN without internet connectivity

I'm using OSX and when I tried to run my expo app on connected android or iphones, I got an error saying
Something went wrong.
Could not load exp://102.168.43.87:19000. Network response timed out.
But when I'm using a Windows system to start expo, its working on the same LAN without internet.
Any solution?