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

Get client name

Hy!

sorry for my bad english...

i'm developping web forms in c# and i have to take the client machine name

I try with server variables ( request.servervariables ) and with
request.hostname() hostaddress()

dosn't work because ( i think ) in lan we don't have a dns server then
methods retrieve only ip address

someone say to me that i have to take the "netbios" ( or something like
this ) compuer name

is all right?

how can i do it?
thanks & another time sorry for my realy bad english!

Ciao Maurizio
Jan 12 '06 #1
6 3490
Maurizio,

Try:

System.Net.Dns.GetHostName

It should return the machine name regardless of it being on a network or
not...

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:Wh*********************@twister1.libero.it...
Hy!

sorry for my bad english...

i'm developping web forms in c# and i have to take the client machine name

I try with server variables ( request.servervariables ) and with
request.hostname() hostaddress()

dosn't work because ( i think ) in lan we don't have a dns server then
methods retrieve only ip address

someone say to me that i have to take the "netbios" ( or something like
this ) compuer name

is all right?

how can i do it?
thanks & another time sorry for my realy bad english!

Ciao Maurizio

Jan 12 '06 #2

Oh thanks for your answer!

I have already try this method, but i've to think if in my local area
network ther's not a dns server and in this case the metod return the ip
adress of the host
I think that the only method to get the computer name is by vbscript or
javascript on page that run on client browser but i'm not so god with
javascript and vbscript...

bye Maurizio
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> ha
scritto nel messaggio news:%2****************@TK2MSFTNGP14.phx.gbl...
Maurizio,

Try:

System.Net.Dns.GetHostName

It should return the machine name regardless of it being on a network or
not...

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:Wh*********************@twister1.libero.it...
Hy!

sorry for my bad english...

i'm developping web forms in c# and i have to take the client machine
name

I try with server variables ( request.servervariables ) and with
request.hostname() hostaddress()

dosn't work because ( i think ) in lan we don't have a dns server then
methods retrieve only ip address

someone say to me that i have to take the "netbios" ( or something like
this ) compuer name

is all right?

how can i do it?
thanks & another time sorry for my realy bad english!

Ciao Maurizio


Jan 12 '06 #3
Maurizio,

I didn't realize you meant the client name from a web app. I don't think you
can even do that with VBScript or Javascript. I believe you would need an
active x control. Permission settings will keep that from being revealed I
believe.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:gH********************@twister2.libero.it...

Oh thanks for your answer!

I have already try this method, but i've to think if in my local area
network ther's not a dns server and in this case the metod return the ip
adress of the host
I think that the only method to get the computer name is by vbscript or
javascript on page that run on client browser but i'm not so god with
javascript and vbscript...

bye Maurizio
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> ha
scritto nel messaggio news:%2****************@TK2MSFTNGP14.phx.gbl...
Maurizio,

Try:

System.Net.Dns.GetHostName

It should return the machine name regardless of it being on a network or
not...

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:Wh*********************@twister1.libero.it...
Hy!

sorry for my bad english...

i'm developping web forms in c# and i have to take the client machine
name

I try with server variables ( request.servervariables ) and with
request.hostname() hostaddress()

dosn't work because ( i think ) in lan we don't have a dns server then
methods retrieve only ip address

someone say to me that i have to take the "netbios" ( or something like
this ) compuer name

is all right?

how can i do it?
thanks & another time sorry for my realy bad english!

Ciao Maurizio



Jan 12 '06 #4
a ok... sorry for the miss understanding

is complicate to develop?

do you have link for sample or something can help me?

thanks!

bye Maurizio
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> ha
scritto nel messaggio news:u4*************@TK2MSFTNGP14.phx.gbl...
Maurizio,

I didn't realize you meant the client name from a web app. I don't think
you can even do that with VBScript or Javascript. I believe you would need
an active x control. Permission settings will keep that from being
revealed I believe.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:gH********************@twister2.libero.it...

Oh thanks for your answer!

I have already try this method, but i've to think if in my local area
network ther's not a dns server and in this case the metod return the ip
adress of the host
I think that the only method to get the computer name is by vbscript or
javascript on page that run on client browser but i'm not so god with
javascript and vbscript...

bye Maurizio
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> ha
scritto nel messaggio news:%2****************@TK2MSFTNGP14.phx.gbl...
Maurizio,

Try:

System.Net.Dns.GetHostName

It should return the machine name regardless of it being on a network or
not...

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:Wh*********************@twister1.libero.it...
Hy!

sorry for my bad english...

i'm developping web forms in c# and i have to take the client machine
name

I try with server variables ( request.servervariables ) and with
request.hostname() hostaddress()

dosn't work because ( i think ) in lan we don't have a dns server then
methods retrieve only ip address

someone say to me that i have to take the "netbios" ( or something like
this ) compuer name

is all right?

how can i do it?
thanks & another time sorry for my realy bad english!

Ciao Maurizio



Jan 13 '06 #5
Might not be applicable to your circumstances but If your application
is LAN based and used by internal users you could consider switching
to a smart client winforms app so that you can:

- Use your existing asp.net by having a webbrowser control on the
windows form
- Access Environemnt.MachineName for passing to the server?

I don't thnk this is too much work to achieve and I've used this
approach before to solve security issues in accessing local machine
resources

HTH

-----------------------------------------
David Gray
ASP.NET/C# Developer/Architect (MCAD.NET)
On Fri, 13 Jan 2006 00:56:55 GMT, "libero familymac news"
<fa*******@libero.it> wrote:
a ok... sorry for the miss understanding

is complicate to develop?

do you have link for sample or something can help me?

thanks!

bye Maurizio
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> ha
scritto nel messaggio news:u4*************@TK2MSFTNGP14.phx.gbl...
Maurizio,

I didn't realize you meant the client name from a web app. I don't think
you can even do that with VBScript or Javascript. I believe you would need
an active x control. Permission settings will keep that from being
revealed I believe.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:gH********************@twister2.libero.it...

Oh thanks for your answer!

I have already try this method, but i've to think if in my local area
network ther's not a dns server and in this case the metod return the ip
adress of the host
I think that the only method to get the computer name is by vbscript or
javascript on page that run on client browser but i'm not so god with
javascript and vbscript...

bye Maurizio
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> ha
scritto nel messaggio news:%2****************@TK2MSFTNGP14.phx.gbl...
Maurizio,

Try:

System.Net.Dns.GetHostName

It should return the machine name regardless of it being on a network or
not...

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:Wh*********************@twister1.libero.it...
> Hy!
>
> sorry for my bad english...
>
> i'm developping web forms in c# and i have to take the client machine
> name
>
> I try with server variables ( request.servervariables ) and with
> request.hostname() hostaddress()
>
> dosn't work because ( i think ) in lan we don't have a dns server then
> methods retrieve only ip address
>
> someone say to me that i have to take the "netbios" ( or something like
> this ) compuer name
>
> is all right?
>
> how can i do it?
>
>
> thanks & another time sorry for my realy bad english!
>
> Ciao Maurizio
>


Jan 13 '06 #6
Thanks to all!

but i can't do something like this!

maybe i pretend to solve the bug in component that need computer name & take
the ip address to continue my work!

i've understand that the netbiosname of the client is not accessble by
internet for security protections of shure

thanks

bie Maurizio
"DavidG" <da****@nospam.nospam> ha scritto nel messaggio
news:ks********************************@4ax.com...
Might not be applicable to your circumstances but If your application
is LAN based and used by internal users you could consider switching
to a smart client winforms app so that you can:

- Use your existing asp.net by having a webbrowser control on the
windows form
- Access Environemnt.MachineName for passing to the server?

I don't thnk this is too much work to achieve and I've used this
approach before to solve security issues in accessing local machine
resources

HTH

-----------------------------------------
David Gray
ASP.NET/C# Developer/Architect (MCAD.NET)
On Fri, 13 Jan 2006 00:56:55 GMT, "libero familymac news"
<fa*******@libero.it> wrote:
a ok... sorry for the miss understanding

is complicate to develop?

do you have link for sample or something can help me?

thanks!

bye Maurizio
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> ha
scritto nel messaggio news:u4*************@TK2MSFTNGP14.phx.gbl...
Maurizio,

I didn't realize you meant the client name from a web app. I don't think
you can even do that with VBScript or Javascript. I believe you would
need
an active x control. Permission settings will keep that from being
revealed I believe.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"libero familymac news" <fa*******@libero.it> wrote in message
news:gH********************@twister2.libero.it...

Oh thanks for your answer!

I have already try this method, but i've to think if in my local area
network ther's not a dns server and in this case the metod return the
ip
adress of the host
I think that the only method to get the computer name is by vbscript or
javascript on page that run on client browser but i'm not so god with
javascript and vbscript...

bye Maurizio
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> ha
scritto nel messaggio news:%2****************@TK2MSFTNGP14.phx.gbl...
> Maurizio,
>
> Try:
>
> System.Net.Dns.GetHostName
>
> It should return the machine name regardless of it being on a network
> or
> not...
>
> --
> Sincerely,
>
> S. Justin Gengo, MCP
> Web Developer / Programmer
>
> www.aboutfortunate.com
>
> "Out of chaos comes order."
> Nietzsche
> "libero familymac news" <fa*******@libero.it> wrote in message
> news:Wh*********************@twister1.libero.it...
>> Hy!
>>
>> sorry for my bad english...
>>
>> i'm developping web forms in c# and i have to take the client machine
>> name
>>
>> I try with server variables ( request.servervariables ) and with
>> request.hostname() hostaddress()
>>
>> dosn't work because ( i think ) in lan we don't have a dns server
>> then
>> methods retrieve only ip address
>>
>> someone say to me that i have to take the "netbios" ( or something
>> like
>> this ) compuer name
>>
>> is all right?
>>
>> how can i do it?
>>
>>
>> thanks & another time sorry for my realy bad english!
>>
>> Ciao Maurizio
>>
>
>

Jan 14 '06 #7

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

Similar topics

2
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For...
4
by: Prince Kumar | last post by:
I joined a company recently and they have a java program which hangs (does nothing) after a while. This is no way consistent. It could succeed quite a few times and can fail a few other times....
0
by: Tim Northrup | last post by:
Help! We have DB2 V7.2 (fixpak 12) installed on Windows2003 Server, and the latest V7.2 client installed on another system. The DB2CODEPAGE on all systems is set to 1208, and the database was...
2
by: Burak | last post by:
Hello, I have a web service that has a two user defined public classes. For sake of brevity, I'll write them as follows Public Class Service1 Public Class Class1 Public x as integer End...
0
by: Janning Vygen | last post by:
Hi, i have a question about how to handle postgresql constraint errors in the client app. I found some mails in the archive about it, too. But i have still so many questions about how to do it,...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
8
by: Brian Tkatch | last post by:
Server: DB2/SUN 8.1.6 Client: DB2 Connect Personal Edition (No 11) <URL:ftp://ftp.software.ibm.com/ps/products/db2/fixes2/english-us/db2winIA32v8/fixpak/FP11_WR21365/FP11_WR21365_CONPE.exe> ...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
4
by: gcharbon | last post by:
Hi community, I have a problem with a Soap client written in php. I have a local server (coded in c and a client in c too, it works fine), but i want to test client in php, and i have an error...
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: 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
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,...
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,...
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,...
0
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...

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.