计算机名称到IP [英] Computer Name To IP

查看:90
本文介绍了计算机名称到IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


情况:

- 路由器/交换机后面的2台计算机;

- 在路由器上启用dhcp;

- 计算机名1 = cpuA(WinXP Pro);

- 计算机名2 = cpuB(WinXP Home);

- cpuA和cpuB可以访问彼此的资源;

- cpuA用asp.net网站运行IIS;

- cpuA和cpuB在同一个工作组中并且有

等于子网掩码。


问题:

cpuB如何始终可以访问asp.net

网站'没有

'在cpuA上'服务'知道cpuA的IP(总是

更改)。我试过:http:// cpuA /< rest_of_address>"

和\\cpuA \< rest_of_address>"但是没有

运气好的话。当我使用IP地址

时它确实有效(http://< IP> /< rest_of_address>)。

我是否需要添加一些dns的东西让它工作?


问候并感谢您的时间,

Frederik

Hi all,

Situation:
- 2 computers behind router/switch;
- dhcp enabled on router;
- computer name 1 = cpuA (WinXP Pro);
- computer name 2 = cpuB (WinXP Home);
- cpuA and cpuB can access each other''s resources;
- cpuA runs IIS with asp.net website;
- cpuA and cpuB are in the same workgroup and have
equal subnet masks.

Problem:
How can cpuB always get access to the asp.net
website ''being served'' on cpuA without
knowing the IP of cpuA (which is always
changing). I tried: "http://cpuA/<rest_of_address>"
and "\\cpuA\<rest_of_address>" but both without
any luck. It does work when I use the IP address
instead (http://<IP>/<rest_of_address>).
Do I need to add some dns stuff to get it working?

Regards and thanks for your time,
Frederik

推荐答案




由于两台机器都在同一个子网上,这与名称

分辨率无关。请尝试以下方法:


在网站上在您网站上的IIS中选项卡,单击高级选项卡并添加

cpuA。然后该网站将回复要求 http:// cpuA


问候


Niclas

" Frederik" < AE ************ @ hotmail.com>写在消息

新闻:uG ************** @ TK2MSFTNGP15.phx.gbl ...
Hi,

Since both machines are on the same subnet, this is not related to name
resolution. Try the following:

On the "Web Site" tab in IIS on your website, click the advanced tab and add
cpuA. Then the site will respond to reuqests to http://cpuA

Regards

Niclas
"Frederik" <ae************@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP15.phx.gbl...
大家好, - 路由器/交换机后面的2台计算机;
- 在路由器上启用dhcp;
- 计算机名称1 = cpuA(WinXP Pro);
- 计算机名2 = cpuB(WinXP Home);
- cpuA和cpuB可以访问对方的资源;
- cpuA用asp.net网站运行IIS;
- cpuA和cpuB是在同一工作组中并且具有相同的子网掩码。

问题:
如何cpuB始终可以访问asp.net
网站''正在服务''在cpuA上没有知道cpuA的IP(总是在改变)。我试过:http:// cpuA /< rest_of_address>"
和\\cpuA \< rest_of_address>"但两者都没有运气。当我使用IP地址时它确实有效(http://< IP> /< rest_of_address>)。
我是否需要添加一些dns的东西才能让它工作?
关心并感谢您的时间,
Frederik
Hi all,

Situation:
- 2 computers behind router/switch;
- dhcp enabled on router;
- computer name 1 = cpuA (WinXP Pro);
- computer name 2 = cpuB (WinXP Home);
- cpuA and cpuB can access each other''s resources;
- cpuA runs IIS with asp.net website;
- cpuA and cpuB are in the same workgroup and have
equal subnet masks.

Problem:
How can cpuB always get access to the asp.net
website ''being served'' on cpuA without
knowing the IP of cpuA (which is always
changing). I tried: "http://cpuA/<rest_of_address>"
and "\\cpuA\<rest_of_address>" but both without
any luck. It does work when I use the IP address
instead (http://<IP>/<rest_of_address>).
Do I need to add some dns stuff to get it working?

Regards and thanks for your time,
Frederik



嗨Niclas,


感谢您的回答,但它没有用。

更糟糕的是,我无法再使用

ip地址从cpuB访问cpuA上的网站。

使用ip或cpu名称从两台计算机进行Ping操作仍然没问题。

好​​像我搞砸了,但我不知道如何:-(


任何帮助表示赞赏,

Frederik

Hi Niclas,

Thanks for your answer, but it did not work.
Even worse, I can no longer access the website on cpuA from cpuB using the
ip address.
Pinging from both computers using ip or cpu name works still fine.
Seems like I messed it up, but I donno how :-(

Any help is appreciated,
Frederik

" Niclas Lindblom"< NO ********** *********@hotmail.com>在消息新闻中写道
:%2 **************** @ TK2MSFTNGP09.phx.gbl ...


由于两台机器都在同一个子网上,这与名称
分辨率无关。请尝试以下方法:

;网站&qu OT;在您的网站上的IIS中选项卡,单击高级选项卡,然后添加cpuA。然后,该网站将回复要求 http:// cpuA

问候
"Niclas Lindblom" <NO*******************@hotmail.com> wrote
in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

Since both machines are on the same subnet, this is not related to name
resolution. Try the following:

On the "Web Site" tab in IIS on your website, click the advanced tab and
add cpuA. Then the site will respond to reuqests to http://cpuA

Regards

Niclas



你好frederik,


你能通过以下方式访问默认的IIS wesite吗?输入以下内容:
http:// cpuA / tsweb
http:// cpuA / printers

Serge

MCP


" Frederik"写道:
Hi frederik,

Are you able to access default IIS wesite by typing the following:
http://cpuA/tsweb
http://cpuA/printers

Serge
MCP

"Frederik" wrote:
嗨Niclas,

感谢您的回答,但它没有用。
更糟糕的是,我再也无法访问该网站了来自cpuB的cpuA使用
IP地址。
使用ip或cpu名称从两台计算机进行ping操作仍然没有问题。
好像我搞砸了,但我不知道如何: - (

感谢任何帮助,
Frederik

Hi Niclas,

Thanks for your answer, but it did not work.
Even worse, I can no longer access the website on cpuA from cpuB using the
ip address.
Pinging from both computers using ip or cpu name works still fine.
Seems like I messed it up, but I donno how :-(

Any help is appreciated,
Frederik

" Niclas Lindblom"< NO ********** *********@hotmail.com>在消息新闻中写道
:%2 **************** @ TK2MSFTNGP09.phx.gbl ...


由于两台机器都在同一个子网上,这与名称
分辨率无关。请尝试以下方法:

;在您网站上的IIS中的网站选项卡中,单击高级选项卡并添加cpuA。然后该网站将响应所需的 http:// cpuA

关于

Niclas
"Niclas Lindblom" <NO*******************@hotmail.com> wrote
in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi,

Since both machines are on the same subnet, this is not related to name
resolution. Try the following:

On the "Web Site" tab in IIS on your website, click the advanced tab and
add cpuA. Then the site will respond to reuqests to http://cpuA

Regards

Niclas




这篇关于计算机名称到IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆