Answer the question
In order to leave comments, you need to log in
Assigning primary IP to local computer?
Good afternoon, dear Habrosociety.
I have a problem. The fact is that I have been struggling with the problem for several hours and cannot solve it ...
So let's go ... I have two computers. One stationary (main) and the second laptop. The main one is connected to the internet. The laptop is connected to the main one via a cable (twisted pair). The Internet works fine, both on the stationary and on the laptop. But now I have a problem. I had a need to run an http server on a laptop and, most importantly, that this server could be accessed from the Internet. I have a dedicated IP, that is, if I run an http server on the main computer, then when I enter the IP address into the browser, I can see the contents of the server. But if I run an http server on a laptop, then I can’t connect to the server, since I understand that the local computer (laptop) has an internal IP. This is where the problem lies. But I know that somehow you can make the main computer (stationary) just a gateway or something like this, so that they can connect to the laptop from the Internet. Please help me figure out how to make a laptop a server available to the Internet.
Thanks in advance!
upd: Both computers are running Windows XP
Answer the question
In order to leave comments, you need to log in
Do you have two local network interfaces and one of them has an Internet, and the other has a laptop? If yes, then in the properties of the network interface that is connected to the Internet, on the “Access” tab (logically, there should be a checkbox “allow other users ...”) click on the “settings” button and select “Web server (HTTP)” in the list of services . This will force (in theory) the main computer, when requested to it on port 80, to forward the request to the laptop.
It remains only to clarify which operating system is on a stationary computer ...
You need to do port forwarding behind NAT (this is called PAT or Port Forwarding).
for wipfw the rule will be the simplest wipfw fwd 2laptop_ip 80,443 from any to me 80,443
perhaps just an ip-redirector will do for this task. for example rinetd (under Linux \ Unix) is for sure. Under Windows… read
lemweb.ru/2007/10/20/redirektor_portov.html here.
All this can be done using standard Windows tools. As I understand it, you are using "internet connection sharing" on the adapter of a desktop computer that looks at the Internet. if so, this should help you
www.dslreports.com/r0/download/181339;bd105dc7c26c9fbad8be83372f13319d/icsconfigXP.jpg
another option is to put nginx under windows and proxy it. Almost like an adult.
Also, as an option, if not everyone needs access, you can raise the VPN server on the first computer using Windows. And then you will access your laptop from the outside using the internal IP address.
But I'm not sure what will work simultaneously with nat, which lets the laptop into the Internet.
ps The most energy-saving way is to buy a router (: He certainly knows how to port mapping (:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question