Razan Paul Blog

Explaining thoughts and findings is a great way to learn

Browse by Tags

All Tags » Socket (RSS)
Testing server whether it is reachable or not in c#
In client server development, we need this feature in many situations including: When client starts before server, it should periodically check whether server is UP or not. As soon as it gets server is up, it will connect with it to do its own business...
How can we get the first IP4 Address of the local machine in c#?
When we write client server or peer to peer application, a frequent task is to find the first IP4 address of local machine. A machine has multiple types of addresses besides IP4 and IP6. For this reason, we will first get the address list of the machine...
Testing whether two IP addresses are in the same network using c#.
IPv4 address has two basic parts:  the network part and the host part. As we know, if network potions of two IPs are same, they are in the same network. By performing and operation between subnet mask and IP address, we can get the network portion...
Finding subnet mask from IP4 address using c#.
IP4 addresses are categorized into 5 classes. For the  first three classes we have predefined subnet mask. So if we can detect the class of an IP address , we can determine the corresponding subnet mask. The address ranges used for each class are...
IP address spoofing in c# using P/Invoke
According to Wiki, the term IP (Internet Protocol) address spoofing refers to the creation of IP packets with a forged (spoofed) source IP address with the purpose of concealing the identity of the sender or impersonating another computing system. For...
More Posts