Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   ping works but chrome not connects? (https://forum.exetools.com/showthread.php?t=20963)

agoo 04-13-2024 16:03

ping works but chrome not connects?
 
When I type 192.168.7.2 in file explorer address bar it connects to the connected portable device. Also ping 192.168.7.2 works OK without loss but when I type 192.168.7.2 in chrome address bar I get "connection refused". Firewall is off and no proxy is used. Any idea how to get around this?

LaDidi 04-14-2024 13:15

Hi,

I think it doesn't use the same protocol : "file" vs http
Use WireShark to understand

chants 04-14-2024 14:44

Samba != ICMP != HTTP. Different ports hosting different services are available on a system. The web server can also be misconfigured or have its own security etc...

niculaita 04-14-2024 14:51

in windows explorer use \\ip\c$

\\192.168.7.2\LetterOfYourDevice$

Moe 04-15-2024 05:11

Quote:

Originally Posted by agoo (Post 130641)
When I type 192.168.7.2 in file explorer address bar it connects to the connected portable device. Also ping 192.168.7.2 works OK without loss but when I type 192.168.7.2 in chrome address bar I get "connection refused". Firewall is off and no proxy is used. Any idea how to get around this?

This has been disabled on purpose - security.
The security risk is anyone can create a webpage with a link to local files on your hard drive.
If not disabled then it would mean that attackers would be able to even link to and run any executables on your PC from the internet through the browser when you visit an arbitrary web page.

This used to work in the past to enable links in browser to local files. It may or may not work with modern versions of the browsers:
Code:

https://github.com/tksugimoto/chrome-extension_open-local-file-link
You can try it and see if it works for you.

chants 04-15-2024 10:37

Quote:

Originally Posted by Abdul Moeed (Post 130648)
This has been disabled on purpose - security.
The security risk is anyone can create a webpage with a link to local files on your hard drive.
If not disabled then it would mean that attackers would be able to even link to and run any executables on your PC from the internet through the browser when you visit an arbitrary web page.

This used to work in the past to enable links in browser to local files. It may or may not work with modern versions of the browsers:
Code:

https://github.com/tksugimoto/chrome-extension_open-local-file-link
You can try it and see if it works for you.

So you are likely a greenhorn in this area. But since you've not heard of CORS, here is a reference as it's pretty standard for some years now to be able to allow cross origin resource sharing:
Quote:

https://aws.amazon.com/what-is/cross-origin-resource-sharing/
I already mentioned web servers have their own security.

However here he said connection refused, not a 400 unauthorized which would be the correct and likely behavior for a properly configured web server. Hope I've taught our greenhorn friend here some web dev info so they can provide more accurate responses in the future

Moe 04-15-2024 14:16

Quote:

Originally Posted by chants (Post 130649)
So you are likely a greenhorn in this area. But since you've not heard of CORS, here is a reference as it's pretty standard for some years now to be able to allow cross origin resource sharing:

I already mentioned web servers have their own security.

However here he said connection refused, not a 400 unauthorized which would be the correct and likely behavior for a properly configured web server. Hope I've taught our greenhorn friend here some web dev info so they can provide more accurate responses in the future

Read the first post carefully. @agoo is asking about LOCAL DEVICE.
There is no web server involved.

@agoo is trying to access his LOCAL DEVICE files with his browser and asking why it fails.
I have provided the answer.
CORS is something totally different.

Stop trying to put down people with high-sounding terms without understanding their meaning first...

chants 04-16-2024 00:38

Quote:

Originally Posted by Abdul Moeed (Post 130650)
Read the first post carefully. @agoo is asking about LOCAL DEVICE.
There is no web server involved.

@agoo is trying to access his LOCAL DEVICE files with his browser and asking why it fails.
I have provided the answer.
CORS is something totally different.

Stop trying to put down people with high-sounding terms without understanding their meaning first...

CORS applies to different ports on a local host as well. Something even the most junior of web devs knows. Calm down my tenderfooted friend. Just because you are neophyte doesn't imply anything bad about you

niculaita 04-17-2024 03:19

\\localhost\d$

wx69wx2023 04-17-2024 14:00

Quote:

Originally Posted by agoo (Post 130641)
When I type 192.168.7.2 in file explorer address bar it connects to the connected portable device. Also ping 192.168.7.2 works OK without loss but when I type 192.168.7.2 in chrome address bar I get "connection refused". Firewall is off and no proxy is used. Any idea how to get around this?

Hi,dude, you have to describe the problem clearly.
1.what is the portable device?
NAS?
2.what do you type? What is your OS?(win?)
File explorer : \\192.168.7.2?
Chrome: http(s)://192.168.7.2 ? or file://192.168.7.2/sharefolder ? (must have sharefolder)

3.what do you want?

Moe 04-19-2024 00:47

Meanwhile... I think @agoo solved his problem.

chants 04-19-2024 07:57

Quote:

Originally Posted by Abdul Moeed (Post 130669)
Meanwhile... I think @agoo solved his problem.

Have you reached out to him personally, tyro? Or are you speculating to satisfy your naif spirit?

NON 04-21-2024 06:39

Quote:

Originally Posted by agoo (Post 130641)
When I type 192.168.7.2 in file explorer address bar it connects to the connected portable device. Also ping 192.168.7.2 works OK without loss but when I type 192.168.7.2 in chrome address bar I get "connection refused". Firewall is off and no proxy is used. Any idea how to get around this?

@agoo Did you solve your problem yet?


All times are GMT +8. The time now is 18:18.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX