473,516 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the local mac address?

Hi, I tried:

import ctypes
import socket
import struct

def get_macaddress(host):
""" Returns the MAC address of a network host, requires >= WIN2K.
"""

# Check for api availability
try:
SendARP = ctypes.windll.Iphlpapi.SendARP
except:
raise NotImplementedError('Usage only on Windows 2000 and
above')

# Doesn't work with loopbacks, but let's try and help.
if host == '127.0.0.1' or host.lower() == 'localhost':
host = socket.gethostname()

# gethostbyname blocks, so use it wisely.
try:
inetaddr = ctypes.windll.wsock32.inet_addr(host)
if inetaddr in (0, -1):
raise Exception
except:
hostip = socket.gethostbyname(host)
inetaddr = ctypes.windll.wsock32.inet_addr(hostip)

buffer = ctypes.c_buffer(6)
addlen = ctypes.c_ulong(ctypes.sizeof(buffer))
if SendARP(inetaddr, 0, ctypes.byref(buffer), ctypes.byref(addlen))
!= 0:
raise WindowsError('Retreival of mac address(%s) - failed' %
host)

# Convert binary data into a string.
macaddr = ''
for intval in struct.unpack('BBBBBB', buffer):
if intval > 15:
replacestr = '0x'
else:
replacestr = 'x'
macaddr = ''.join([macaddr, hex(intval).replace(replacestr,
'')])

return macaddr.upper()

if __name__ == '__main__':
print 'Your mac address is %s' % get_macaddress('localhost')

It works perfect under W2K and above. But I would like to run it on
Win98 too. Any help?

Thanks

Daniel

Dec 14 '05 #1
24 7262
Daniel Crespo wrote:
Hi, I tried: ... # Convert binary data into a string.
macaddr = ''
for intval in struct.unpack('BBBBBB', buffer):
if intval > 15:
replacestr = '0x'
else:
replacestr = 'x'
macaddr = ''.join([macaddr, hex(intval).replace(replacestr, '')])


Replace the above by:
return '%02X' * 6 % struct.unpack('BBBBBB', buffer)

(doesn't help with win98, though)

--
-Scott David Daniels
sc***********@acm.org
Dec 14 '05 #2
Hi, Scott,

Thanks for your answer
Hi, I tried: ...
# Convert binary data into a string.
macaddr = ''
for intval in struct.unpack('BBBBBB', buffer):
if intval > 15:
replacestr = '0x'
else:
replacestr = 'x'
macaddr = ''.join([macaddr, hex(intval).replace(replacestr, '')])

Replace the above by:
return '%02X' * 6 % struct.unpack('BBBBBB', buffer)


Replace all the above? I mean all this:

# Convert binary data into a string.
macaddr = ''
for intval in struct.unpack('BBBBBB', buffer):
if intval > 15:
replacestr = '0x'
else:
replacestr = 'x'
macaddr = ''.join([macaddr, hex(intval).replace(replacestr,
'')])

?
(doesn't help with win98, though)


Sorry, but I don't understand... I would like it to get running on
Win98. I know I have to change some code here, but don't know what :(

Dec 14 '05 #3

Daniel Crespo wrote:
Hi, I tried:

import ctypes
import socket
import struct

def get_macaddress(host):
""" Returns the MAC address of a network host, requires >= WIN2K.
"""

# Check for api availability
try:
SendARP = ctypes.windll.Iphlpapi.SendARP
except:
raise NotImplementedError('Usage only on Windows 2000 and
above')

# Doesn't work with loopbacks, but let's try and help.
if host == '127.0.0.1' or host.lower() == 'localhost':
host = socket.gethostname()

# gethostbyname blocks, so use it wisely.
try:
inetaddr = ctypes.windll.wsock32.inet_addr(host)
if inetaddr in (0, -1):
raise Exception
except:
hostip = socket.gethostbyname(host)
inetaddr = ctypes.windll.wsock32.inet_addr(hostip)

buffer = ctypes.c_buffer(6)
addlen = ctypes.c_ulong(ctypes.sizeof(buffer))
if SendARP(inetaddr, 0, ctypes.byref(buffer), ctypes.byref(addlen))
!= 0:
raise WindowsError('Retreival of mac address(%s) - failed' %
host)

# Convert binary data into a string.
macaddr = ''
for intval in struct.unpack('BBBBBB', buffer):
if intval > 15:
replacestr = '0x'
else:
replacestr = 'x'
macaddr = ''.join([macaddr, hex(intval).replace(replacestr,
'')])

return macaddr.upper()

if __name__ == '__main__':
print 'Your mac address is %s' % get_macaddress('localhost')

It works perfect under W2K and above. But I would like to run it on
Win98 too. Any help?

Sorry that I can't help you in any way but have a question myself. Is
there an OS independent way to get this thing(regardless of how to
format it) in Python ? I know this may not matter if all you want is
Windows but there is just another thread talking about one should write
programs that is OS independent.

Is this a problem of the network library of python ?

Dec 15 '05 #4

bo****@gmail.com wrote:
Sorry that I can't help you in any way but have a question myself. Is
there an OS independent way to get this thing(regardless of how to
format it) in Python ? I know this may not matter if all you want is
Windows but there is just another thread talking about one should write
programs that is OS independent.

Is this a problem of the network library of python ?


This is not a generic solution, but it works for me on Linux and
Windows

def getMacAddress():
if sys.platform == 'win32':
for line in os.popen("ipconfig /all"):
if line.lstrip().startswith('Physical Address'):
mac = line.split(':')[1].strip().replace('-',':')
break
else:
for line in os.popen("/sbin/ifconfig"):
if line.find('Ether') > -1:
mac = line.split()[4]
break
return mac

HTH

Frank Millman

Dec 15 '05 #5

Frank Millman wrote:
bo****@gmail.com wrote:
Sorry that I can't help you in any way but have a question myself. Is
there an OS independent way to get this thing(regardless of how to
format it) in Python ? I know this may not matter if all you want is
Windows but there is just another thread talking about one should write
programs that is OS independent.

Is this a problem of the network library of python ?


This is not a generic solution, but it works for me on Linux and
Windows

def getMacAddress():
if sys.platform == 'win32':
for line in os.popen("ipconfig /all"):
if line.lstrip().startswith('Physical Address'):
mac = line.split(':')[1].strip().replace('-',':')
break
else:
for line in os.popen("/sbin/ifconfig"):
if line.find('Ether') > -1:
mac = line.split()[4]
break
return mac

Thanks, but how can I associate the result to the socket, assuming that
is the reason for wanting to get at the MAC ?

I see that some *nix implementation use fcntl/ioctl to read this info
out of the file handle of a socket but these modules don't exist on
Windows(may be some other platform as well).

Dec 15 '05 #6

bo****@gmail.com wrote:
Frank Millman wrote:
bo****@gmail.com wrote:
Sorry that I can't help you in any way but have a question myself. Is
there an OS independent way to get this thing(regardless of how to
format it) in Python ? I know this may not matter if all you want is
Windows but there is just another thread talking about one should write
programs that is OS independent.

Is this a problem of the network library of python ?


This is not a generic solution, but it works for me on Linux and
Windows

def getMacAddress():
if sys.platform == 'win32':
for line in os.popen("ipconfig /all"):
if line.lstrip().startswith('Physical Address'):
mac = line.split(':')[1].strip().replace('-',':')
break
else:
for line in os.popen("/sbin/ifconfig"):
if line.find('Ether') > -1:
mac = line.split()[4]
break
return mac

Thanks, but how can I associate the result to the socket, assuming that
is the reason for wanting to get at the MAC ?

I see that some *nix implementation use fcntl/ioctl to read this info
out of the file handle of a socket but these modules don't exist on
Windows(may be some other platform as well).


As you can see, this is a quick and dirty solution.

I am sure you can hack at it some more, bring up the associated ip
address, and compare it with socket.gethostbyaddr() or similar.

I don't know of a more correct solution - maybe someone else can advise
better.

BTW I recall a response some time ago warning that you cannot rely on a
mac address, as they can be modified. Depending on your intended use,
this may or may not be important.

Sorry I cannot be of more help

Frank

Dec 15 '05 #7
bo****@gmail.com wrote:
Frank Millman wrote:
bo****@gmail.com wrote:
Sorry that I can't help you in any way but have a question myself. Is
there an OS independent way to get this thing(regardless of how to
format it) in Python ? I know this may not matter if all you want is
Windows but there is just another thread talking about one should write
programs that is OS independent.

Is this a problem of the network library of python ?
This is not a generic solution, but it works for me on Linux and
Windows

def getMacAddress():
if sys.platform == 'win32':
for line in os.popen("ipconfig /all"):
if line.lstrip().startswith('Physical Address'):
mac = line.split(':')[1].strip().replace('-',':')
break
else:
for line in os.popen("/sbin/ifconfig"):
if line.find('Ether') > -1:
mac = line.split()[4]
break
return mac


Thanks, but how can I associate the result to the socket, assuming that
is the reason for wanting to get at the MAC ?

Why should you want to associate a MAC address with a socket? Each
interface has an IP address, and it's that you should be using.
I see that some *nix implementation use fcntl/ioctl to read this info
out of the file handle of a socket but these modules don't exist on
Windows(may be some other platform as well).

Indeed, and that's why most networkers probably wouldn't regard this as
a deficiency in Python's network handling but an inevitable consequence
of the diversity of architectures, utilities and drivers in today's world.

It may well be possible to write Python code that will run on all
platforms (for example, the same way as the os.path module does, by
importing the correct piece of code according to the platform), but it
would need maintenance. Since the interface MAC address is unimportant
for most network applications I guess nobody has so far thought it worth
contributing to the core.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Dec 15 '05 #8

Steve Holden wrote:
Why should you want to associate a MAC address with a socket? Each
interface has an IP address, and it's that you should be using. Say for example I want to find out the MAC if a particular interface in
python.
It may well be possible to write Python code that will run on all
platforms (for example, the same way as the os.path module does, by
importing the correct piece of code according to the platform), but it
would need maintenance. Since the interface MAC address is unimportant
for most network applications I guess nobody has so far thought it worth
contributing to the core.

That is a reasonable explanation.

Dec 15 '05 #9
bo****@gmail.com wrote:
Steve Holden wrote:
Why should you want to associate a MAC address with a socket? Each
interface has an IP address, and it's that you should be using.


Say for example I want to find out the MAC if a particular interface in
python.

When you are asked "why would you want to do something" it isn't
normally considered sufficient to reply "suppose I want to do
something". I'm still trying to find out what use case (apart from
curiosity) drives this need to know.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Dec 15 '05 #10

Steve Holden wrote:
bo****@gmail.com wrote:
Steve Holden wrote:
Why should you want to associate a MAC address with a socket? Each
interface has an IP address, and it's that you should be using.


Say for example I want to find out the MAC if a particular interface in
python.

When you are asked "why would you want to do something" it isn't
normally considered sufficient to reply "suppose I want to do
something". I'm still trying to find out what use case (apart from
curiosity) drives this need to know.

That is nothing but curiosity of why there is no such thing. I didn't
start a thread with "what the xyz@!% hell that I cannot get MAC address
through the socket module".

And I answer things the way I want to, if it does fit your expected
answer, there is nothing I can do. I am not here to convince you.

Dec 15 '05 #11
bo****@gmail.com wrote:
Steve Holden wrote:
bo****@gmail.com wrote:
Steve Holden wrote:
Why should you want to associate a MAC address with a socket? Each
interface has an IP address, and it's that you should be using.

Say for example I want to find out the MAC if a particular interface in
python.


When you are asked "why would you want to do something" it isn't
normally considered sufficient to reply "suppose I want to do
something". I'm still trying to find out what use case (apart from
curiosity) drives this need to know.


That is nothing but curiosity of why there is no such thing. I didn't
start a thread with "what the xyz@!% hell that I cannot get MAC address
through the socket module".

And I answer things the way I want to, if it does fit your expected
answer, there is nothing I can do. I am not here to convince you.

Temper, temper.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Dec 15 '05 #12

Steve Holden wrote:
bo****@gmail.com wrote:
Steve Holden wrote:
bo****@gmail.com wrote:

Steve Holden wrote:
>Why should you want to associate a MAC address with a socket? Each
>interface has an IP address, and it's that you should be using.

Say for example I want to find out the MAC if a particular interface in
python.
When you are asked "why would you want to do something" it isn't
normally considered sufficient to reply "suppose I want to do
something". I'm still trying to find out what use case (apart from
curiosity) drives this need to know.


That is nothing but curiosity of why there is no such thing. I didn't
start a thread with "what the xyz@!% hell that I cannot get MAC address
through the socket module".

And I answer things the way I want to, if it does fit your expected
answer, there is nothing I can do. I am not here to convince you.

Temper, temper.

you can read my temper from what I write ?

Dec 15 '05 #13
bo****@gmail.com wrote:
Steve Holden wrote:
bo****@gmail.com wrote:
Steve Holden wrote:
bo****@gmail.com wrote:
>Steve Holden wrote:
>
>
>
>>Why should you want to associate a MAC address with a socket? Each
>>interface has an IP address, and it's that you should be using.
>
>Say for example I want to find out the MAC if a particular interface in
>python.
>

When you are asked "why would you want to do something" it isn't
normally considered sufficient to reply "suppose I want to do
something". I'm still trying to find out what use case (apart from
curiosity) drives this need to know.
That is nothing but curiosity of why there is no such thing. I didn't
start a thread with "what the xyz@!% hell that I cannot get MAC address
through the socket module".

And I answer things the way I want to, if it does fit your expected
answer, there is nothing I can do. I am not here to convince you.


Temper, temper.


you can read my temper from what I write ?

Nope, but I can make inferences, whose correctness you can choose to lie
or tell the truth about. I was merely trying to make the point that your
response failed to further anybody's understanding of anything. I'm not
really bothered *why* you do what you do.

I asked "Why should you want to associate a MAC address with a socket?"
and you replied "Say for example I want to find out the MAC if a
particular interface in python". Fine. But if you don't want to engage
in a dialogue, why bother posting at all?

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Dec 15 '05 #14

Steve Holden wrote:
Nope, but I can make inferences, whose correctness you can choose to lie
or tell the truth about. I was merely trying to make the point that your
response failed to further anybody's understanding of anything. I'm not
really bothered *why* you do what you do. That is nice try. I said I am not, you can fit it as "I am lying". As
for failed or not failed, I don't know what anybody want to get out of
it. I just curious why there is no such function in the socket model,
when I saw a "OS dependent" implementation of getting MAC. Nothing
more. And your answer that there is not sufficient need for putting it
in the standard libary(for the maintainance work needed), answered my
puzzle.

I asked "Why should you want to associate a MAC address with a socket?"
and you replied "Say for example I want to find out the MAC if a
particular interface in python". Fine. But if you don't want to engage
in a dialogue, why bother posting at all?

Huh ? You ask why, I come up with an example. I said it all started
with curiosity, not out of need. I don't see why it is not a dialogue.
You think that it is not because it doesn't meet your expectation
answer(thus your "you are supposed" response), that I can do nothing as
that is your right or thought.

Dec 15 '05 #15
bo****@gmail.com wrote:
Steve Holden wrote:
Nope, but I can make inferences, whose correctness you can choose to lie
or tell the truth about. I was merely trying to make the point that your
response failed to further anybody's understanding of anything. I'm not
really bothered *why* you do what you do.


That is nice try. I said I am not, you can fit it as "I am lying". As
for failed or not failed, I don't know what anybody want to get out of
it. I just curious why there is no such function in the socket model,
when I saw a "OS dependent" implementation of getting MAC. Nothing
more. And your answer that there is not sufficient need for putting it
in the standard libary(for the maintainance work needed), answered my
puzzle.

I asked "Why should you want to associate a MAC address with a socket?"
and you replied "Say for example I want to find out the MAC if a
particular interface in python". Fine. But if you don't want to engage
in a dialogue, why bother posting at all?


Huh ? You ask why, I come up with an example. I said it all started
with curiosity, not out of need. I don't see why it is not a dialogue.
You think that it is not because it doesn't meet your expectation
answer(thus your "you are supposed" response), that I can do nothing as
that is your right or thought.

I'm probably just not reading your responses carefully enough.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/

Dec 15 '05 #16

Steve Holden wrote:
I'm probably just not reading your responses carefully enough.

That is fine, misunderstanding happens all the time. And why I am
curious that there is no such thing in Python, it is because of this :

http://search.cpan.org/~lds/IO-Inter...8/Interface.pm

I am learning python and from time to time, I would come up with
ideas(yup, nothing but ideas as an excercise) of how to implement
certain thing in python, most of them have no usage value. The OP just
prompt me to the idea of "what if I want to implement something like
ifconfig in python".

Dec 15 '05 #17
Steve Holden <st***@holdenweb.com> writes:
bo****@gmail.com wrote:
Steve Holden wrote:
Why should you want to associate a MAC address with a socket? Each
interface has an IP address, and it's that you should be using.

Say for example I want to find out the MAC if a particular interface in
python.

When you are asked "why would you want to do something" it isn't normally
considered sufficient to reply "suppose I want to do something". I'm still
trying to find out what use case (apart from curiosity) drives this need to
know.


One thing that I've seen more than once is restricting the use of the software
to one machine. There you can use the MAC address as an item of assurance
that you're on the authorized machine.

Of course, MAC addresses can be cloned, changed, etc. But this is one use
case for knowing the MAC address and not using it with networking.

--
Jorge Godoy <go***@ieee.org>
Dec 15 '05 #18
On 2005-12-15, bo****@gmail.com <bo****@gmail.com> wrote:
Why should you want to associate a MAC address with a socket? Each
interface has an IP address, and it's that you should be using.

Say for example I want to find out the MAC if a particular
interface in python.


When you are asked "why would you want to do something" it
isn't normally considered sufficient to reply "suppose I want
to do something". I'm still trying to find out what use case
(apart from curiosity) drives this need to know.


That is nothing but curiosity of why there is no such thing. I
didn't start a thread with "what the xyz@!% hell that I cannot
get MAC address through the socket module".

And I answer things the way I want to, if it does fit your
expected answer, there is nothing I can do. I am not here to
convince you.


Taking an attitude like that towards one of the most respected
people in the Python community is bound to be rather counter
productive.

Nobody owes you any answers, so yes, in fact, you _are_ here to
convince people that you deserve their help.

--
Grant Edwards grante Yow! Didn't I buy a 1951
at Packard from you last March
visi.com in Cairo?
Dec 15 '05 #19
On 2005-12-15, bo****@gmail.com <bo****@gmail.com> wrote:
>>Why should you want to associate a MAC address with a socket? Each
>>interface has an IP address, and it's that you should be using.
>
>Say for example I want to find out the MAC if a particular interface in
>python.
>

When you are asked "why would you want to do something" it isn't
normally considered sufficient to reply "suppose I want to do
something". I'm still trying to find out what use case (apart from
curiosity) drives this need to know.
That is nothing but curiosity of why there is no such thing. I didn't
start a thread with "what the xyz@!% hell that I cannot get MAC address
through the socket module".

And I answer things the way I want to, if it does fit your expected
answer, there is nothing I can do. I am not here to convince you.

Temper, temper.


you can read my temper from what I write ?


If not, then you should be more careful what you write.

--
Grant Edwards grante Yow! Sign my PETITION.
at
visi.com
Dec 15 '05 #20

Grant Edwards wrote:
On 2005-12-15, bo****@gmail.com <bo****@gmail.com> wrote:
>Why should you want to associate a MAC address with a socket? Each
>interface has an IP address, and it's that you should be using.

Say for example I want to find out the MAC if a particular
interface in python.

When you are asked "why would you want to do something" it
isn't normally considered sufficient to reply "suppose I want
to do something". I'm still trying to find out what use case
(apart from curiosity) drives this need to know.


That is nothing but curiosity of why there is no such thing. I
didn't start a thread with "what the xyz@!% hell that I cannot
get MAC address through the socket module".

And I answer things the way I want to, if it does fit your
expected answer, there is nothing I can do. I am not here to
convince you.


Taking an attitude like that towards one of the most respected
people in the Python community is bound to be rather counter
productive.

Nobody owes you any answers, so yes, in fact, you _are_ here to
convince people that you deserve their help.

I get my answer anyway, and I don't know who is respected on here and
if I do, it won't change a thing in the way I answer it.

Dec 15 '05 #21

Grant Edwards wrote:
you can read my temper from what I write ?


If not, then you should be more careful what you write.

such as ?

Dec 15 '05 #22
I was looking on how to get MAC address universally (Windows and Linux) and
found one package that is doing that and more...

http://libdnet.sourceforge.net/

--
Dejan Rodiger - PGP ID 0xAC8722DC
Delete wirus from e-mail address
Dec 16 '05 #23

Dejan Rodiger wrote:
I was looking on how to get MAC address universally (Windows and Linux) and
found one package that is doing that and more...

http://libdnet.sourceforge.net/

Thanks for the info.

Dec 16 '05 #24
> I was looking on how to get MAC address universally (Windows and Linux) and
found one package that is doing that and more... http://libdnet.sourceforge.net/


Thank you for the info too :)

Daniel

Dec 20 '05 #25

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

Similar topics

7
10897
by: crypto_stonelock | last post by:
Hello, I was wondering if anybody knew how to retrieve the IP address attributed dynamically by your ISP without having to use the info collected on a socket with say .getLocalAddress. I'm using dsl with PPPoE and whenever i try to get the local address, through InetAddress, the network address is returned. So i'm guessing that...
7
17930
by: gurtd_dauberie | last post by:
I can't get the correct IP address on Linux... The following code works properly on Windows and Unix. But on Linux, I always get the Loopback Address (127.0.0.1) Here is the code : //gets the IP via InetAddress class //works on UNIX and WIN, but not on LINUX !! InetAddress hostIP = InetAddress.getLocalHost(); String hostIPStr =...
21
15656
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port 1234, but each instance binds to a different ip address. that is to say: instance #1 binds to 192.168.1.5/port 1234 instance #2 binds to...
2
6448
by: Keith Langer | last post by:
I have a TCPListener which needs to listen on my LAN IP as well as the loopback address. In VS.Net 2002 the TCPListener constructor could accept the port as an argument and it automatically bound to all network adapters (this is also how it worked with VB6). Now that constructor is obsolete, and the new one requires an IPEndPoint or...
2
1876
by: Sherif ElMetainy | last post by:
Hello I am writing a HTTP client, that will run on a computer with multiple IP addresses. I want to bind the TCP socket for the HTTP connection to a specific IP address, but unfortunately there is no option to do this in System.Net.HttpWebRequest class. I looked for that option a lot, I even looked at the ROTOR source code to if there is a...
0
3001
by: Gregory Hassett | last post by:
Hello, I want to periodically send a TCP packet to a peer, always from the same source port. That is, each packet will come from my local ip address, port 8801, and go to the peer's ip address, to HIS port 8801. This means that I need to bind my sender socket to (myaddress,8801), use it for the send, then shut it down and close it. Then...
2
1879
by: Code Monkey | last post by:
Hope someone can help me out here. I'm writing some code (web forms) to see where a specific domain name resolves and if its not a local address, redirect to a specific redirect page. <code> IPHostEntry IPHost = Dns.Resolve("www.domainname.com");
0
1692
by: Michael Höhne | last post by:
Hi, we're developing some web services and use the local development server of Visual Studio 2005 to create, run and debug the project. The web service methods connect to a database hosted on a dedicated server and the Microsoft CRM 3.0 server, also on a separate machine. As the CRM server installation makes changes to the Active Directory,...
5
20115
by: ljlevend2 | last post by:
Is there any way to create a local server during runtime? For example, if you add an existing Web Site to a Solution from within Visual Studio (by right clicking the solution in the Solution Explorer, then selecting Add - Existing Web Site...), then Visual Studio will create an ASP.NET Development Server on a random port (e.g.,...
5
3724
by: Eng Teng | last post by:
What is the command to display computer name & ip address in VB.NET 2005 (OS WindowsXP & Windows Vista) Regards, Tee
0
7182
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...
0
7408
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. ...
0
7581
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7142
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7548
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...
0
5714
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3267
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...
0
488
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.