Answer the question
In order to leave comments, you need to log in
Redirect from 192.168.1.25:8000 to localhost, how to do?
I launched a local server in Win10 on python in the directory of the page of my self-written interface according to this instruction .
Ok, at 127.0.0.1:8000/1.html the page opens.
Registered in hosts 127.0.0.1 myweb.com
Ok, the page opens on myweb.com:8000/1.html .
Registered in hosts 127.0.0.1 192.168.1.25
And fsyo... Nothing opens on 192.168.1.25:8000/1.html .
So, how do I redirect from 192.168.1.25 to my page? ..
Answer the question
In order to leave comments, you need to log in
The hosts file is for matching domain names, not ip addresses.
In order for the site to open on 192.168.1.25, you must have the following:
1. The web server must listen for requests at this address
2. Your computer running the web server must have this address.
Redirect from 192.168.1.25:8000 to localhost, how to do?No way. You seem to be confusing warm with soft.
Registered in hosts 127.0.0.1 192.168.1.25
So, how do I redirect from 192.168.1.25 to my page? ..Yes, redirection is elementary. Just tell me the address of your page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question