开发者

How to quickly connect 2 PC together using Ethernet without router / DNS

In the field I often need to perform remote debugging on a target PC using my Delphi development IDE running on my (host) laptop. Because I cannot use any pre-existing network address infrastructure I use a cross-over network cable directly linking the two PC's. I then setup manual IP address of (say) 100.100.100.1 and 100.100.100.2 for the two and after much rebooting and fiddling I get the shared folders that I need. Finally after working in this way I have to carefully put things back to how they were.

This is pain tho开发者_JAVA百科ugh. There is a lot of typing and room for error. Further, sharing can take a while before things become visible. Is there some way that I can run something (or write a script) that would ease this process in any way?


Use the designated intranet IP ranges: 10.x.x.x or 192.168.x.x, not 100.x.x.x.

Run a DHCP server on your box. The other box will most probably be already configured to use DHCP to obtain an IP address, this is the default. Windows comes with a bundled DHCP server (at least some versions, install it as a Windows component), or you can use a third-party one.

You need zero rebooting on either box: all modern OSes allow to change IP addresses and routing on the fly, Windows is capable of this for at least a decade. Note that you don't need to change the IP address of your box. Often the secret of fast folder access is using the IP address, like \\192.168.1.1\share_name because name resolution services may take long time to kick in.

If you want both the link via the cross cable and a wired Internet/LAN link, just add another network card to your box (slightly more expensive with notebooks) and have the DHCP server only work with that dedicated card, so you don't need to touch the Internet-connected interface at all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜