Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atlantis not connecting to Proxyman #69

Closed
shgew opened this issue Apr 15, 2021 · 14 comments
Closed

Atlantis not connecting to Proxyman #69

shgew opened this issue Apr 15, 2021 · 14 comments
Assignees

Comments

@shgew
Copy link
Contributor

shgew commented Apr 15, 2021

My Mac and iPhone are connected to the same network and are connected by a USB cable.
However, when launching an app with Atlantis inside, it is unable to find Proxyman in the network, even if I specify hostname. It connects successfully only if I:

  1. Launch the app for the first time. Atlantis successfully connects upon giving local network permission.
  2. I put the app to background for a second or longer. Atlantis successfully connects upon reopening the app.

The issue was not present about 2 months ago, when I last used this awesome tool!

@shgew
Copy link
Contributor Author

shgew commented Apr 15, 2021

I have no issues with simulator though.

@NghiaTranUIT NghiaTranUIT self-assigned this Apr 15, 2021
@NghiaTranUIT
Copy link
Member

Not sure what might cause the connection problem 🤔

@shgew if it works 2 months ago, can you try to install the old release https://github.com/ProxymanApp/atlantis/releases

@shgew
Copy link
Contributor Author

shgew commented Apr 15, 2021

Will do! I will post the result here.

@shgew
Copy link
Contributor Author

shgew commented Apr 15, 2021

Installing versions 1.7.0 and 1.5.0 didn't help :\
However, relaunching Proxyman also results in an immediately established connection, in addition to the two points above.
Maybe it has something to do with either macOS or iOS updates in the last two months?

@NghiaTranUIT
Copy link
Member

From what I remember, I haven't changed any major things regarding the Bonjour Service since the first build. I will investigate the bug 👍

@shgew
Copy link
Contributor Author

shgew commented Apr 15, 2021

Thank you!

@ski081
Copy link

ski081 commented Apr 30, 2021

Hi. I'm having the same issue, except I cannot get a connection to work at all. I see the following logs when my app starts up from Xcode:

---------- 🧊 Atlantis is running (version 1.0)
---------- Github: https://github.com/ProxymanApp/atlantis

[Atlantis] Looking for Proxyman app in the network...
[Atlantis] Found Proxyman with HostName = mstruzin-3e807.local.
[Atlantis] ✅ Connect to mstruzin-3e807.local.
[Atlantis] Flush 1 items

But then I don't get the Atlantis group in the Proxyman sidebar when I start using network connections. I have tried via start() and start(hostName:) and get the same result for both.

@NghiaTranUIT
Copy link
Member

@ski081 please update your Atlantis to the latest version 1.9.0 to make it works with the latest version of Proxyman 2.24.0

There is a major update regarding the Bonjour Service since version 1.0 👍

@ski081
Copy link

ski081 commented May 3, 2021

Hi.

I installed via Swift Package Manager, and the version shows as 1.9.0 in Xcode. Although the console printout shows 1.0. Should I try to install via CocoaPods instead?

@NghiaTranUIT
Copy link
Member

Look like it's a bug when installing via SPM (not show the version correctly).

Regarding why you could not connect to Proxyman, there are many reasons and one of them is the cooperated network might block Bonjour Service. Therefore, Atlantis could not discover and connect to Proxyman.

Please try running on your simulator, and see if you can see the traffic @ski081

@NghiaTranUIT
Copy link
Member

I tested via CocoaPod

  • Able to see the traffic from iOS Simulators
  • Unable to see the traffic at my cooperated wifi (it blocks Bonjour Service)
  • but I'm able to see the traffic at my home Wifi.

@ski081
Copy link

ski081 commented May 7, 2021

Hi @NghiaTranUIT. I am seeing the same. When on my corporate VPN, I cannot see traffic from the device, even when it is connected via a cable. It will discover the running instance of Proxyman on my Mac, but will not capture traffic.

Do you know if there is any way around this? Or would I need to start working with my support team to unblock incoming traffic for specific ports?

I can see Atlantis traffic from the simulator on this machine no problem.

Thank you for all your help!

@NghiaTranUIT
Copy link
Member

@ski081 can you try to disable all VPN apps from your macOS and iOS device 🤔

For Bonjour Service, Proxyman opens port 10909. Please check with your security team if they block it 👍

@shgew
Copy link
Contributor Author

shgew commented May 29, 2021

Would like to mention that the issue is extremely rare after the v1.9.0. It happened only one or two times after the update. Thank you for the fix!

@shgew shgew closed this as completed May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants