473,473 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Obtain a MAC address from a connected socket

Hello,

We have developed a socket tcpip server in .net that accepts calls from
clients. Using the connected socket we are able to use the
Socket.RemoteEndPoint to obtain the IP address of the client. Is there any
way to obtain the MAC address for the client?

Thanks

Jeronimo
Sep 30 '05 #1
5 6638
On Fri, 30 Sep 2005 11:39:11 -0700, Jeronimo Bertran
<je**************@newsgroup.nospam> wrote:
Hello,

We have developed a socket tcpip server in .net that accepts calls from
clients. Using the connected socket we are able to use the
Socket.RemoteEndPoint to obtain the IP address of the client. Is there any
way to obtain the MAC address for the client?

Thanks

Jeronimo


That's not really practical... The only tools that can query the MAC
address work within a subnet (because a remote IP would resolve to the
router's MAC)
Oct 2 '05 #2
"Jeronimo Bertran" <je**************@newsgroup.nospam> wrote in message
news:Xn********************************@207.46.248 .16...
We have developed a socket tcpip server in .net that accepts calls from
clients. Using the connected socket we are able to use the
Socket.RemoteEndPoint to obtain the IP address of the client. Is there
any
way to obtain the MAC address for the client?


The client MAY not even have a MAC address, they could be using a protocol
like SLIP or PPP.
Oct 3 '05 #3
Hi Jeronimo,

As Emmet and Jim has mentioned, the clientside could have discretionary
sub net structure and MAC address only make sense for the clientside's
local network area. In fact, the subnet is just used for local network area
and is not visible to the external network. If your application's client
side are all in the same local network environment, that'll make some sense.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Jim Hughes" <NO*********@Hotmail.com>
| References: <Xn********************************@207.46.248.1 6>
| Subject: Re: Obtain a MAC address from a connected socket
| Date: Sun, 2 Oct 2005 18:10:11 -0700
| Lines: 13
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| Message-ID: <en**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| NNTP-Posting-Host: dcn243-141.dcn.davis.ca.us 168.150.243.141
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:51146
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| "Jeronimo Bertran" <je**************@newsgroup.nospam> wrote in message
| news:Xn********************************@207.46.248 .16...
|
| > We have developed a socket tcpip server in .net that accepts calls from
| > clients. Using the connected socket we are able to use the
| > Socket.RemoteEndPoint to obtain the IP address of the client. Is there
| > any
| > way to obtain the MAC address for the client?
|
| The client MAY not even have a MAC address, they could be using a
protocol
| like SLIP or PPP.
|
|
|

Oct 3 '05 #4
Thanks for the answers.

Jeronimo
Oct 6 '05 #5
You're welcome Jeronimo,

If there're any further things we can help, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
--------------------
| Subject: Re: Obtain a MAC address from a connected socket
| From: Jeronimo Bertran <je**************@newsgroup.nospam>
| References: <Xn********************************@207.46.248.1 6>
<en**************@tk2msftngp13.phx.gbl>
<SH*************@TK2MSFTNGXA01.phx.gbl>
| Organization: Your Company
| Message-ID: <Xn********************************@207.46.248.1 6>
| User-Agent: Xnews/??.01.30
| Newsgroups: microsoft.public.dotnet.general
| Date: Thu, 06 Oct 2005 14:59:39 -0700
| NNTP-Posting-Host: c-069-063-192-218.sd2.redwire.net 69.63.192.218
| Lines: 1
| Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSF TNGXA03.phx.gbl!TK2MSFTNGP
08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:51487
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Thanks for the answers.
|
| Jeronimo
|

Oct 7 '05 #6

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

Similar topics

6
by: marco | last post by:
I'd search a lot ... but i had not found how can i obtain my ip address (when i'm connected to the www) ?! thanks a lot for any tips marco
1
by: Daniel | last post by:
after opening socket, sending data then closing socket 3000 times i get "Only one usage of each socket address" what am i doing wrong? is there some thing else i need to do to free up the socket...
1
by: Matt_is_a_novice | last post by:
I am writing a server to open a TCPListener, the client connects, and the server returns a Socket. I want to know what IP address is connected to my server. How do I retrieve the IP address of my...
5
by: Jeronimo Bertran | last post by:
Hello, We have developed a socket tcpip server in .net that accepts calls from clients. Using the connected socket we are able to use the Socket.RemoteEndPoint to obtain the IP address of the...
13
by: Sandeep Singh | last post by:
I am making socket client application in C# how can i get ip address of client who has connected to server
7
by: semedao | last post by:
Hi all, I view many posts about this issue , the connected property does not tell us the current status of the socket. based on couple of suggestions of msdn , and some article here , I try to...
6
by: Zytan | last post by:
Once a socket is connected, perhaps to a hostname that contains multiple IP addresses, how can I determine to which IP address the connection is made? The only thing I can get from my Socket is an...
3
luke14free
by: luke14free | last post by:
Hail, I am new to web-python and so i would like to ask one thing: how could i bind my socket to an address like http://thenameiwant or http://www.thenameiwant.somedomain (as i see that medusa...
1
by: vabh | last post by:
Help from there, i want the IP Address of all computers which are connected in LAN with me. Its really urgent for me. I using one kind of coding which returns me IP Address of only one computer, but...
0
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...
0
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.