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: 222
Rept. Given: 2
Rept. Rcvd 11 Times in 10 Posts
Thanks Given: 64
Thanks Rcvd at 54 Times in 29 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
VIP
 
Join Date: Jul 2016
Posts: 826
Rept. Given: 47
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 737
Thanks Rcvd at 1,140 Times in 529 Posts
chants Reputation: 51
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,476
Rept. Given: 1,009
Rept. Rcvd 95 Times in 65 Posts
Thanks Given: 5,431
Thanks Rcvd at 508 Times in 359 Posts
niculaita Reputation: 95
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
Moe Moe is offline
Banned User
 
Join Date: Sep 2023
Posts: 28
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 2
Thanks Rcvd at 11 Times in 7 Posts
Moe 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
VIP
 
Join Date: Jul 2016
Posts: 826
Rept. Given: 47
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 737
Thanks Rcvd at 1,140 Times in 529 Posts
chants Reputation: 51
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
Moe Moe is offline
Banned User
 
Join Date: Sep 2023
Posts: 28
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 2
Thanks Rcvd at 11 Times in 7 Posts
Moe 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
VIP
 
Join Date: Jul 2016
Posts: 826
Rept. Given: 47
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 737
Thanks Rcvd at 1,140 Times in 529 Posts
chants Reputation: 51
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,476
Rept. Given: 1,009
Rept. Rcvd 95 Times in 65 Posts
Thanks Given: 5,431
Thanks Rcvd at 508 Times in 359 Posts
niculaita Reputation: 95
\\localhost\d$
__________________
Decode and Conquer
Reply With Quote
  #10  
Old 04-17-2024, 14:00
wx69wx2023 wx69wx2023 is offline
Family
 
Join Date: Sep 2023
Posts: 316
Rept. Given: 48
Rept. Rcvd 59 Times in 34 Posts
Thanks Given: 586
Thanks Rcvd at 876 Times in 230 Posts
wx69wx2023 Reputation: 59
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
Moe Moe is offline
Banned User
 
Join Date: Sep 2023
Posts: 28
Rept. Given: 1
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 2
Thanks Rcvd at 11 Times in 7 Posts
Moe Reputation: 2
Meanwhile... I think @agoo solved his problem.
Reply With Quote
  #12  
Old 04-19-2024, 07:57
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 826
Rept. Given: 47
Rept. Rcvd 50 Times in 31 Posts
Thanks Given: 737
Thanks Rcvd at 1,140 Times in 529 Posts
chants Reputation: 51
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
NON NON is offline
Banned User
 
Join Date: Sep 2023
Posts: 77
Rept. Given: 2
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 30
Thanks Rcvd at 21 Times in 16 Posts
NON 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
anyone know how to debug chrome extention independently (not using google chrome) Mendax47 General Discussion 2 09-14-2021 19:23
Making PING to JMI taos General Discussion 3 05-18-2015 03:38


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


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