473,408 Members | 2,832 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,408 software developers and data experts.

How do I get the Machine Number?


C#

As the title says.....How do i obtain the Machine Number of the machine my
code is running on in C#??

Thanks

Steve
Dec 13 '05 #1
3 959
Steve,

There is no machine number, there is not even a "nubmer". Yesterday there
was a long discussion in the newsgroup languages.vb. The most that reached
it is a mac address in a network adapter. However than there was somebody
replying that at least he had no network adapter in his computer.

Cor
Dec 13 '05 #2

I am running a windows app, and what I was after was the machine name.
Sorry I mis typed it. I found it though in the end, the answer was
System.Net.DNS.GetHostName()

Thanks anyway.

"Cor Ligthert [MVP]" wrote:
Steve,

There is no machine number, there is not even a "nubmer". Yesterday there
was a long discussion in the newsgroup languages.vb. The most that reached
it is a mac address in a network adapter. However than there was somebody
replying that at least he had no network adapter in his computer.

Cor

Dec 13 '05 #3
Steve,

Or this one

http://msdn2.microsoft.com/en-us/lib...chinename.aspx

I hope this helps,

Cor

"Steve" <St***@discussions.microsoft.com> schreef in bericht
news:B7**********************************@microsof t.com...

I am running a windows app, and what I was after was the machine name.
Sorry I mis typed it. I found it though in the end, the answer was
System.Net.DNS.GetHostName()

Thanks anyway.

"Cor Ligthert [MVP]" wrote:
Steve,

There is no machine number, there is not even a "nubmer". Yesterday there
was a long discussion in the newsgroup languages.vb. The most that
reached
it is a mac address in a network adapter. However than there was somebody
replying that at least he had no network adapter in his computer.

Cor

Dec 13 '05 #4

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

Similar topics

3
by: Vanchau Nguyen | last post by:
Hi all, Hoping someone can help us with this strange Innodb problem. At about 5:15 AM 2/2/04 (this morning), our slave server stopped accepting connections. The machine was pingable, but you...
1
by: thomasb | last post by:
When setting up federation between two databases on the same instance everything works fine. When trying to do the same between two databases on different instances on the same machine I get...
8
by: ben | last post by:
hello, i'm trying to answer a "prove an upper bound on the number of machine instructions required to process M connections on N objects" exercise from an algorithms book. i don't understand a...
18
by: JJ | last post by:
Now I know this question has been asked many times, but I cannot seem to find a good site which summarises the methods possible in vb .net. I am after a way of producing a unique serial number...
21
by: codergem | last post by:
One common answer is that all compilers keep the size of integer the same as the size of the register on a particular architecture. Thus, to know whether the machine is 32 bit or 64 bit, just see...
0
by: joestevens232 | last post by:
I am seriously stuck and have been working on this for hours and hours and can't figure out my next step....heres the program assignment. This vending machine dispenses 1. M&Ms ($.65), 2. Chips...
4
by: queenma7 | last post by:
Write a program that simulates a soft drink machine. The program should use a structure that stores the following information: Drink name Drink cost Number of drinks in machine The...
4
by: H.S. | last post by:
Hello, I am trying out a few methods with which to test of a given number is practically zero. as an example, does the following test correctly if a given number is zero within machine...
1
by: mcjason | last post by:
- Moving pairs Given something like a checkers board, moving pairs would be checkers paired together and arranged on the board Given something like a checkers board, moving pairs are checker...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.