需要IP地址和端口 [英] Need of IP address and Port

查看:81
本文介绍了需要IP地址和端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些查询。



1.为什么我们有足够的IP地址和端口号来识别

目标目标?



2.我正在以user1运行进程。作为此流程执行的一部分,我是否可以绑定到端口

编号980?



3.哪个网络延迟组件我们可以控制吗?



4.我的管理员设置我的电脑在局域网中,IP地址为10.3.4.5
突然,当我重新启动我的电脑时,它抛出一个错误对话框

'IP conflict'。 PC如何检测IP冲突?



5.我远程登录到Web服务器以通过我的PC检查系统状态

putty工具。系统日志中显示Web服务器中的一切正常。

然后我快速休息2分钟喝咖啡,当我回来时,

我看到一个错误我的电脑上的对话框显示'服务器意外关闭了

连接'。你能告诉我网络协议级别会发生什么吗?

详细信息?



请帮助,

谢谢提前

I have some set of queries.

1. Why do we have IP address and port number when one would suffice to identify
the destined target?

2. I am running a process as user1. Will I be allowed to bind to a port
number 980 as part of this process execution?

3. Which of the network delay components are controllable at our end?

4. My admin set my PC which is in a LAN with an IP address 10.3.4.5
Suddenly, when I rebooted my PC it threw an error dialog
'IP conflict'. how the PC was able to detect the IP conflict?

5. I was remote logged in to a web server to check system status from my PC via
putty tool. Everything was ok in the web server as seen in the system logs.
Then I took a quick 2 minute break for coffee, when I came back,
I saw an error dialog on my PC which read 'Server unexpectedly close the
connection'. Can you tell me what could have happened with network protocol level
details?

Please help,
Thanks in advance

推荐答案

您好b $ b

互联网协议地址(IP地址)是从计算机分配给每个设备的数字标签网络与127.0.0.1相同,在从计算机网络识别出具有IP地址的目标机器之后,该号码的每个部分都在0-255(0-255.0-255.0-255.0-255)之间(假设您想从带有邮寄地址的城市找到一个家)您应该使用端口,数据交换的位置称为端口(在城市示例中,识别家庭后,您应该使用与门或窗口相同的端口到家中传入;-))因此IP地址足以获得数据到正确的计算机,但没有说哪个应用程序应该在该计算机上接收数据。这就是端口号的作用。例如,按照惯例,发送到TCP端口80的任何内容都将转发到在该计算机上运行的Web服务器。



获取更多信息请关注以下链接:< br $> b $ b

http://en.wikipedia.org/wiki/IP_address [ ^ ]

http://whatismyipaddress.com/ip-address [ ^ ]



最好的问候。
Hi
An Internet Protocol address (IP address) is a numerical label assigned to each device from computer network same as 127.0.0.1 each part of this number are between 0-255(0-255.0-255.0-255.0-255) after identify target machine with IP Address from computer network ( assume you want find a home from city with post address) you should use the port, The location where data is exchanged is called a port ( in the city example after identify home you should use port same as door or window to the incoming at home ;-) ) Thus the IP address is enough to get the data to the right computer but does not say which application should receive the data on that machine. That is what the port number does. For example, by convention anything sent to TCP port 80 will be forwarded to a web server running on that machine.

for getting more information please follow of these links:

http://en.wikipedia.org/wiki/IP_address[^]
http://whatismyipaddress.com/ip-address[^]

Best Regards.


简答题是:因为这是这样设计的。更严重一点:你的一个人足够只不过是你的幻想,与缺乏理解IP如何运作有关。你的整个方法是错误的:你应该首先学习IP寻址的基础知识(作为最低限度),然后才能做出一些结论并尝试做出陈述。



现在,我们认为:IP地址是一种有限的资源,因为这是一种独特的东西,无论是世界上独一无二的,还是某些网络所独有的。即使每台计算机拥有多个IP地址也不是问题,通常它只有一两个,几乎没有。而单个主机,尤其是用作服务器的主机,通常会执行多种不同的服务。是的,在同一个IP地址上。因此,端口号。另一件事是:IP地址标识主机,而端口号标识服务类型并与某些协议相关联。尽管不同的端口号可以与相同的协议一起使用(因此允许执行多个可通过相同协议访问的服务,这是IP寻址的一个重要特性),但标准协议具有符合全球范围的标准关联默认端口号 IANA 权威机构支持的标准。顺便说一下,任何与端口号相关的决定都应该在查阅这个标准文件的基础上做出: http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml [ ^ ]。



-SA
The short answer is: because this is designed this way. A bit more serious: your "one would suffice" is nothing but your fantasy, related to lack of understanding how IP works. Your whole approach is wrong: you should first learn the basics of IP addressing (as the minimum) and only then do some conclusions and try to make statements.

Now, let's think: an IP address is a limited resource, because this is something unique, either world-unique, or unique to some network. Even though this is not a problem to have several IP address per computer, usually it has one or two, hardly more. And a single host, especially used as a server, usually executes several different services. Yes, on the same IP address. Hence, the port numbers. Another thing is this: IP address identifies the host, while port number identifies the "type of the service" and is associated with certain protocol. Even though different port numbers can be used with the same protocol (thus allowing to execute more then one service accessible via the same protocol, which is an important feature of IP addressing), standard protocol have standard associated default port numbers meeting the world-wide standard supported by IANA authority. By the way, any decisions related to port number should be made based on consulting this standard document: http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml[^].

—SA


IP地址作为网络中的计算机名称,而端口号可以识别该计算机中的哪些应用程序需要数据。



来自另一台计算机的所有数据都将由应用程序请求,但是哪个?

我们拥有HTTP应用程序(Web浏览器),MS SQL Server,电子邮件(SMTP,其他),信使,电子游戏等......



那么我们如何指导从网络到正确的应用程序的数据? />
使用端口号。
The IP Address works as the computer's name in the network, while the port number is good to identify what application in that computer needs the data.

All data coming from another computer will be requested by an application, but which?
We have HTTP applications (web browsers), MS SQL Server, E-mail (SMTP, others), Messengers, videogames, etc...

So how do we direct the data from the network to the right application?
With the use of a port number.


这篇关于需要IP地址和端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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