473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 6632
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.