Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2024, 16:03
agoo agoo is offline
Friend
 
Join Date: Dec 2014
Posts: 129
Rept. Given: 1
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 13
Thanks Rcvd at 25 Times in 21 Posts
agoo Reputation: 0
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?
Reply With Quote
  #2  
Old 04-14-2024, 13:15
LaDidi LaDidi is offline
VIP
 
Join Date: Aug 2004
Posts: 211
Rept. Given: 2
Rept. Rcvd 11 Times in 10 Posts
Thanks Given: 48
Thanks Rcvd at 41 Times in 24 Posts
LaDidi Reputation: 11
Hi,

I think it doesn't use the same protocol : "file" vs http
Use WireShark to understand
Reply With Quote
  #3  
Old 04-14-2024, 14:44
chants chants is offline
Banned User
 
Join Date: Jul 2016
Posts: 763
Rept. Given: 42
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 683
Thanks Rcvd at 1,090 Times in 495 Posts
chants Reputation: 50
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...
Reply With Quote
  #4  
Old 04-14-2024, 14:51
niculaita's Avatar
niculaita niculaita is offline
Family
 
Join Date: Jun 2011
Location: here
Posts: 1,345
Rept. Given: 950
Rept. Rcvd 89 Times in 61 Posts
Thanks Given: 4,389
Thanks Rcvd at 480 Times in 339 Posts
niculaita Reputation: 89
in windows explorer use \\ip\c$

\\192.168.7.2\LetterOfYourDevice$
__________________
Decode and Conquer

Last edited by niculaita; 04-14-2024 at 16:05.
Reply With Quote
  #5  
Old 04-15-2024, 05:11
Abdul Moeed Abdul Moeed is offline
Banned User
 
Join Date: Sep 2023
Location: Cleveland, Ohio
Posts: 28
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 3
Thanks Rcvd at 10 Times in 7 Posts
Abdul Moeed Reputation: 2
Quote:
Originally Posted by agoo View Post
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.
Reply With Quote
  #6  
Old 04-15-2024, 10:37
chants chants is offline
Banned User
 
Join Date: Jul 2016
Posts: 763
Rept. Given: 42
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 683
Thanks Rcvd at 1,090 Times in 495 Posts
chants Reputation: 50
Quote:
Originally Posted by Abdul Moeed View Post
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
Reply With Quote
  #7  
Old 04-15-2024, 14:16
Abdul Moeed Abdul Moeed is offline
Banned User
 
Join Date: Sep 2023
Location: Cleveland, Ohio
Posts: 28
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 3
Thanks Rcvd at 10 Times in 7 Posts
Abdul Moeed Reputation: 2
Quote:
Originally Posted by chants View Post
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...
Reply With Quote
  #8  
Old 04-16-2024, 00:38
chants chants is offline
Banned User
 
Join Date: Jul 2016
Posts: 763
Rept. Given: 42
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 683
Thanks Rcvd at 1,090 Times in 495 Posts
chants Reputation: 50
Quote:
Originally Posted by Abdul Moeed View Post
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
Reply With Quote
  #9  
Old 04-17-2024, 03:19
niculaita's Avatar
niculaita niculaita is offline
Family
 
Join Date: Jun 2011
Location: here
Posts: 1,345
Rept. Given: 950
Rept. Rcvd 89 Times in 61 Posts
Thanks Given: 4,389
Thanks Rcvd at 480 Times in 339 Posts
niculaita Reputation: 89
\\localhost\d$
__________________
Decode and Conquer
Reply With Quote
  #10  
Old 04-17-2024, 14:00
wx69wx2023 wx69wx2023 is offline
Friend
 
Join Date: Sep 2023
Posts: 49
Rept. Given: 2
Rept. Rcvd 18 Times in 6 Posts
Thanks Given: 59
Thanks Rcvd at 169 Times in 34 Posts
wx69wx2023 Reputation: 18
Quote:
Originally Posted by agoo View Post
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?
Reply With Quote
The Following User Says Thank You to wx69wx2023 For This Useful Post:
niculaita (04-18-2024)
  #11  
Old 04-19-2024, 00:47
Abdul Moeed Abdul Moeed is offline
Banned User
 
Join Date: Sep 2023
Location: Cleveland, Ohio
Posts: 28
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 3
Thanks Rcvd at 10 Times in 7 Posts
Abdul Moeed Reputation: 2
Meanwhile... I think @agoo solved his problem.
Reply With Quote
  #12  
Old 04-19-2024, 07:57
chants chants is offline
Banned User
 
Join Date: Jul 2016
Posts: 763
Rept. Given: 42
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 683
Thanks Rcvd at 1,090 Times in 495 Posts
chants Reputation: 50
Quote:
Originally Posted by Abdul Moeed View Post
Meanwhile... I think @agoo solved his problem.
Have you reached out to him personally, tyro? Or are you speculating to satisfy your naif spirit?
Reply With Quote
  #13  
Old 04-21-2024, 06:39
Gregory Morse Gregory Morse is offline
Banned User
 
Join Date: Sep 2023
Location: Cleveland, Ohio
Posts: 78
Rept. Given: 3
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 33
Thanks Rcvd at 22 Times in 17 Posts
Gregory Morse Reputation: 2
Quote:
Originally Posted by agoo View Post
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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



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


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( 1998 - 2024 )