godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.46k stars 21.07k forks source link

4.0.3 Remote Debugging cannot be accessed by a LAN device #77964

Open a690089735 opened 1 year ago

a690089735 commented 1 year ago

Godot version

v4.0.3.stable.official [5222a99f5]

System information

windows10 - v4.0.3.stable.official [5222a99f5] - compatibility

Issue description

In version 4.0.3.When using remote debugging, the LAN device cannot access the service But in 3.5.2,is can.

This is the setting in 3.5.2,All you need to do is set the IP to the local LAN ip image

This is the setting in 4.0.3,In 4.0, without the addition of a certificate, even the native cannot access the service by ip,But even then, other devices can't access it image

I'm not sure if 4.0.3 requires something extra or if this is a bug in 4.0.3. The remote debugging feature is very useful, and in 3.5.2 I can even access it directly from my phone to debug multi-touch operations on my mobile device.

Steps to reproduce

Run with remote debugging..

Minimal reproduction project

none

Calinou commented 1 year ago

Is the service visible from a port scan on your local network?

After installing nmap, run the following in a terminal while the project is running from the editor:

nmap -p8060 192.168.1.0/24
a690089735 commented 1 year ago

The service must have been turned on correctly.Whatever setting. image

Additional note:

1 local chrome http://localhost/tmp_js_export.html LAN chrome http://192.168.1.*:8060/tmp_js_export.html Use localhost in the configuration. The local PC can be debuggable, but the LAN device cannot access the page. LAN chrome show "ERR_connection_time_out" and "crbug/1173575, non-JS module files deprecated.\nNo resource with given URL found"

2 local chrome http://192.168.1.*:8060/tmp_js_export.html LAN chrome http://192.168.1.*:8060/tmp_js_export.html If the 192.168.1.* ip address is used in Settings, a security error is displayed. The LAN chrome can access and display an identical security error. image

3 local chrome https://192.168.1.*:8060/tmp_js_export.html LAN chrome https://192.168.1.*:8060/tmp_js_export.html Use the 192.168.1.* ip address in the Settings and add a self-signed CA certificate in the export Settings. The local chrome can access the page, but the LAN device cannot access the page. LAN chrome show "ERR_connection_reset" and "crbug/1173575, non-JS module files deprecated.\nNo resource with given URL found"

4 When 3.5.2 is used, it can be accessed normally even with the default Settings.(with local chrome and LAN chrome)

\~\~\~ I am very sorry that I use the translation software to communicate, so I may need to use more words to express the meaning correctly.

AThousandShips commented 1 year ago

I am very sorry that I use the translation software to communicate, so I may need to use more words to express the meaning correctly.

That's absolutely okay! Do you mean that you need others to say more words so the translation is good, or that you say many words, I'm guessing it is the second, but want to be sure if you are asking for better communication?

a690089735 commented 1 year ago

I am very sorry that I use the translation software to communicate, so I may need to use more words to express the meaning correctly.

That's absolutely okay! Do you mean that you need others to say more words so the translation is good, or that you say many words?

yes,the second.I feel like I may have been a bit wordy. 😜I'm just afraid that I might not explain myself clearly or accurately enough.

AThousandShips commented 1 year ago

I know how it feels, I often am myself, and when there's a language barrier it's only appreciated, and translation software is getting better and better, if you feel more comfortable using them it's the thing you should use, and we will ask for clarification or confirmation if something is unclear, but it's always appreciated if someone tries to be extra clear to begin with

a690089735 commented 1 year ago

I know how it feels, I often am myself, and when there's a language barrier it's only appreciated, and translation software is getting better and better, if you feel more comfortable using them it's the thing you should use, and we will ask for clarification or confirmation if something is unclear, but it's always appreciated if someone tries to be extra clear to begin with

I got what you said.thanks for understanding,in addition appreciate translation tools that enable me to communicate.😄 also I'll give as much information as I think of.

eon-wu-zhenxiong commented 9 months ago

I also encountered the same problem! How to make local area network devices access through remote debugging?

Calinou commented 9 months ago

@eon-wu-zhenxiong This is an English-speaking platform, so please write comments in English (use machine translation if needed).