Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 106|回复: 0

How to use and troubleshoot network problems

[复制链接]

1

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2023-7-16 12:31:46 | 显示全部楼层 |阅读模式
about network usage and to have information that may be of interest to users, we may also resolve certain network problems that may occur. After all, Netstat shows us a picture of the different aspects of the connection. The goal is, as we've shown, to have better control and reduce the risk of them getting into trouble.


use netstat
To use Netstat on Windows, we  need to access the command line. To do this, we Whatsapp Number List go to Start, write CMD and run it in administrator mode. Later we just have to type netstat and press enter. An image like the one below will appear.



There it will show us all active connections on this device. The first column, Protocol, shows us the protocol (TCP or UDP). The second column tells us the IP addresses and ports of the network interfaces of this equipment for each connection. We can also see the IP addresses and ports of the remote devices. Another question we can see thanks to Netstat is whether the connection is active or closed, which is displayed in the Status column.




The process of loading all connections may take a few minutes, depending on the number. However, it is not something that takes a lot of time.


We can see the port numbers of the connections instead of the port names. For this we need to run the netstat -n command. We will see the same information displayed as before, but this time the port numbers of the remote connections.


What we did is static. That is, it is an image at a given moment. However, we can run the command whenever X. To do this, we just need to run the command netstat -n S, where S = number of seconds to update. For example, we can update it every 7 seconds so that netstat -n is 7.


Netstat commands
With Netstat, we can also fix some issues that may occur with our network connection. There are different parameters that we can consider. We will show which parameters are most used to find specific details of the network.


Netstat –a : allows you to discover all active or inactive networks at a given time. In this way, we will be able to identify potential problems affecting a network.
Netstat –e : in this case we can see statistics about incoming and outgoing network packets on a network card.
Netstat -φ : Displays the fully qualified domain name of remote addresses.
Netstat –n : This command, unlike the previous one, displays port numbers instead of names.
Netstat –o : displays the ID of each process on each connection.
Netstat –σ X: with this command we can filter connections according to the protocol (TCP, UDP, tcpv6 or tcpv4. X = TCP, UDP ... whatever protocol we want. For example, this would be netstat –p TCP.
Netstat –q : question connected listening and non-listening ports.
Netstat –s : Displays group statistics by protocol. Thus we can classify the networks according to the available protocols: TCP, UDP, ICMP, IPv4 or IPv6.
Netstat –r : This command shows us the routing table of the current network.
Netstat –t : Provides information about connections in download state.
Netstat –x : in this case we can get information about all NetworkDirect connections.
In short, these are some commands we can use with Netstat to get information about our connections. It also allows us to resolve some issues. Special mention must be made of security because there are many threats on the Internet today. Using such a tool can give us a real picture of the connections that exist on a server or any computer. We can identify potential malicious connections that can affect us and take action as soon as possible to prevent attackers from gaining access to your computers and making the situation worse.


But it will also be very useful to analyze the ports that are opened at a certain time and thus avoid problems. It is necessary for some applications and to achieve optimal performance.


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|DiscuzX

GMT+8, 2026-1-13 00:24 , Processed in 0.040557 second(s), 18 queries .

Powered by Discuz! DISCUZ_VERSION

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表