473,651 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get Requesting Clients Subnet Mask

I know how i can use request.userhos taddress to get the requesting ip address.

is their any way i can get the requesting clients subnet mask also?
Nov 18 '05 #1
1 2463
"Glenn M" <gl**********@b t.com> wrote in message
news:32******** *************** ***@posting.goo gle.com...
I know how i can use request.userhos taddress to get the requesting ip
address.

is their any way i can get the requesting clients subnet mask also?


No, there isn't. Subnet masks are local to the network they're used on. They
are meaningless outside of that network.

-----
John Saunders
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
9110
by: Chandrashekar Tippur | last post by:
Pros, I was wondering if there is a API for generating ip address range from a given subnet mask (VLSM). Thanks, Shekar
0
1676
by: Pierre Rouleau | last post by:
Hi all, socket.gethostbyname_ex(socket.gethostname()) will return the list of IP addresses on a the local host. I did not find any function that can be used to get the subnet mask and default gateway. Under Win32, the Win32 IP helper API provides a GetIpAddrTable() function that returns information that contain the subnet mask, but that's Win32 level, and is not portable. Is there something available in the Python library for that...
1
2514
by: sam | last post by:
Hi, This is a C programming specific with TCP/IP relation. Supposed I have two string (char *) variables with the following assignment: ip_str = "10.1.2.3" netmask_str = "255.255.0.0" How can I use C programming technique to get the subnet 10.1.0.0? I tried to use "struct in_addr", but not sure how to start writing a
6
19976
by: ohynes | last post by:
hey newbie here wondering if there is anyone out there who can help me im trying to make a c# subnet calulator using the IPAddress class i cant seem to figure out how to do all the subnet calculations now i can do them on paper but thats about it just starting to learn c sharp
1
2412
by: JamesB | last post by:
I'm looking for a function to return true/false depending on if two supplied IP's (as strings) are in the same subnet (also supplied). Im getting nowhere fast unfortunately - I know the theory behind it, but I have no idea on how to actually implement it! I have split my supplied 3 IP's into 4 numbers each, but past that I'm stuck - on paper I would convert them to binary and write down all the 1's and 0's then figure it out, but in...
3
1859
by: JamesB | last post by:
Hmm, this doesn't seem to work. I am probably tackling it completely the wrong way, but basically I want a function to receive two IP's and a subnet mask and return True if IP1 and 2 are on the same subnet, otherwise false. I have got this so far: Private Function IsSameSubnet(ByVal IPSource As String, ByVal IPDest As String, ByVal IPSubnet As String) As Boolean
2
8242
by: Terry Olsen | last post by:
I am using VB 2005. I can't seem to find a way to get my local Subnet Mask. The only thing mentioned from googling is the GetIpAddrTable API, but so far, i've had no luck getting a call to it working. Another idea was to traverse the registry at HKLM/System/CurrentControlSet/Services/Tcpip/Parameters/Interfaces. But that seems really sloppy. One would think that VB 2005 would have a My.Computer.Network.Subnet property.
5
8888
by: wright.brandt | last post by:
I am new to programming in C. If my question is not appropriate for this newsgroup I apologize. I Have been tasked with writing a small application to do some back end processing in C and have had little trouble getting most of the app written. What seems to be holding me up is a tricky (at least for me) piece of network address logic. I need to be able to take an ip address and compare it to a subnet represented in the doted and slashed...
2
3097
by: nussu | last post by:
Hi , I need to find a subnet mask number for a given IP Address number. I have two textbox's once enter the ip address in first textbox i need to get subnet mask number for that ip address in second textbox. Please help me by providing links or c#.net code. Thanks in Advance. Regards, Nussu
0
8349
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.