windows-networking

How to enable ICMP service in Windows?

淺唱寂寞╮ 提交于 2020-06-17 22:55:51
问题 It is enabled by default, however I can't tell it's not enabled, because Firewall is disabled ping 127.0.0.1 times out. I get If you google for "enable icmp in windows", all you get is how to open a port on the firewall, but that assumes that your icmp daemon/service is enabled, but how do you enable it? 回答1: The process that listens to port 7 to ICMP echo requests is called TCPSVCS.EXE You can try calling "C:\Windows\System32\TCPSVCS.EXE" to see if it works and starts listening to ICMP echo

How to enable ICMP service in Windows?

寵の児 提交于 2020-06-17 22:55:22
问题 It is enabled by default, however I can't tell it's not enabled, because Firewall is disabled ping 127.0.0.1 times out. I get If you google for "enable icmp in windows", all you get is how to open a port on the firewall, but that assumes that your icmp daemon/service is enabled, but how do you enable it? 回答1: The process that listens to port 7 to ICMP echo requests is called TCPSVCS.EXE You can try calling "C:\Windows\System32\TCPSVCS.EXE" to see if it works and starts listening to ICMP echo

Why is .NET's File.Open with a UNC path making excessive SMB calls?

瘦欲@ 提交于 2020-01-30 15:24:28
问题 I have a block of code that needs to open and read a lot of small text files from a NAS server using UNC paths. This code is part of a module that was originally written in C++ but is now being converted to C#. The C# version is significantly slower. I determined that the call to open the file accounts for nearly all of the performance difference. Using WireShark I found that this is because the System.IO.File.Open call makes far more SMB network requests than similar C++ code. The C++ code

Why is .NET's File.Open with a UNC path making excessive SMB calls?

人走茶凉 提交于 2020-01-30 15:24:27
问题 I have a block of code that needs to open and read a lot of small text files from a NAS server using UNC paths. This code is part of a module that was originally written in C++ but is now being converted to C#. The C# version is significantly slower. I determined that the call to open the file accounts for nearly all of the performance difference. Using WireShark I found that this is because the System.IO.File.Open call makes far more SMB network requests than similar C++ code. The C++ code

How to know if given IPV6 address belongs to the same subnet as local machine

帅比萌擦擦* 提交于 2020-01-07 07:45:10
问题 Currenly I have a c function that takes a ip address and subnetmask and checks if given ipv4 is private/public. It does by following logic to matchsubnet: (local ipv4 address && local subnetmask) == (given ipv4 && given subnetmask) What logic can be written for ipv6? I can write a function to receive an ip and subnet prefix. Can i get local subnet prefix? 回答1: I order to determine if two hosts are on the same subnet take both their addresses and prefix lengths (subnet masks). If the prefix

Network Drive Not Available On Startup

青春壹個敷衍的年華 提交于 2019-12-12 14:36:23
问题 I have a C# application which loads at startup, and logs data to a network drive, which is mounted as X: When the machine first boots, the application throws an error that X:\ is not available. If I restart the app, same error. However, if I open Windows Explorer and double click to browse the drive, I can then run the application and it will connect to X: just fine. Do network drives not automatically initialise on startup, despite being mapped? Is there a way to set them to initialise

apache on windows network - can't connect to external ip from in network

与世无争的帅哥 提交于 2019-12-08 04:55:31
问题 I created an AMP web application that was originally going to be served from a traditional 3rd party host. As we finished up, the client decided to host it internally, on a server in their office network. The application is only meant to be available to staff members, but those staff members will often be off-site. I had no involvement in setting up their network, which uses at least one server running windows server 2003. The client machines I saw were XP. I set up Apache, MySQL and PHP on

Binding multiple times to the same port?

这一生的挚爱 提交于 2019-12-06 12:05:59
问题 Why doesn't the following code throw a "java.net.BindException: Address already in use: JVM_Bind" exception? import java.net.InetSocketAddress; import java.net.ServerSocket; public class Test { public static void main(String[] args) throws Exception { try (ServerSocket socket1 = new ServerSocket(); ServerSocket socket2 = new ServerSocket(); ServerSocket socket3 = new ServerSocket()) { int port = 10000; socket1.setReuseAddress(false); socket1.bind(new InetSocketAddress("0.0.0.0", port));

Binding multiple times to the same port?

£可爱£侵袭症+ 提交于 2019-12-04 17:33:46
Why doesn't the following code throw a "java.net.BindException: Address already in use: JVM_Bind" exception? import java.net.InetSocketAddress; import java.net.ServerSocket; public class Test { public static void main(String[] args) throws Exception { try (ServerSocket socket1 = new ServerSocket(); ServerSocket socket2 = new ServerSocket(); ServerSocket socket3 = new ServerSocket()) { int port = 10000; socket1.setReuseAddress(false); socket1.bind(new InetSocketAddress("0.0.0.0", port)); socket2.setReuseAddress(false); socket2.bind(new InetSocketAddress("127.0.0.1", port)); socket3

Get Destination Ip/Port of active udp Connection?

江枫思渺然 提交于 2019-12-04 06:36:19
问题 I m able to retrieved active TCP and UDP connection using iphlpapi. The TCP Connection showing with source info(ip/port), Destination info(ip/port), state and process id. But for UDP Connection its no giving remote IP and port. That what i want to get. Any way to get destination information using source information or process id in Delphi or c++. 回答1: UDP is a connectionless protocol. You can only get the local port that has been opened. UPDATE: This applies for a static look at the port