>> I have a problem when I use NAT mode that is other computer cannot
>> connect to my server.
>> Lets my windows has IP 192.168.1.85 <http://192.168.1.85> and
>> 192.168.0.1 <http://192.168.0.1>, coLinux has 192.168.0.2
>> Computer IP 192.168.1.100 <http://192.168.1.100> can ping 192.168.1.85
>> <http://192.168.1.85> but cannot ping my coLinux....
>> How to port forwarding 192.168.0.2 <http://192.168.0.2> ti
>> 192.168.1.85 <http://192.168.1.85> on Windows shared network ?
> There is some confusion here.
> What you describe is not Port forwarding but routing.
> You have to add a routing rule on 192.168.1.100 that 192.168.0.0/24 can
> be reached via 192.168.1.85
If you're using NAT, routing is not the issue. CoLinux can ping
What you have to do is tell Windows' connection-sharing that a certain
port on it's external address (eg. 22 for ssh) should be forwarded to an
internal address (192.168.0.2) and port (normally the same, 22).
Bring up properties for the 'Local Area Connection' adapter (the one
that has 192.168.1.85). Connection-sharing should be enabled. Then press
the Settings button and add the service.
Then, to connect to CoLinux port 22 from 192.168.1.100, you must
actually connect to 192.168.1.85:22
This also means that if you want to use a port that the Windows already
uses (say 80) you have to redirect another port (say 81) to port 80 on
CoLinux. This means you don't have to reconfigure the web server on
CoLinux, just the port forwarding in Windows. And then you have to
connect to 192.168.1.85:81 to actually reach the web server on CoLinux.