Subscribe to Subscribers
Talk to Webmaster Tony John


Forums » .NET » ASP.NET »

portnumber


Posted Date: 21 Sep 2008      Posted By:: kalaimanichozhan     Member Level: Gold    Member Rank: 447     Points: 1   Responses: 2



How to get portnumber?

With Regards
Kalai




Responses

#297978    Author: sathya      Member Level: Silver      Member Rank: 0     Date: 21/Sep/2008   Rating: 2 out of 52 out of 5     Points: 3

string myHost = System.Net.Dns.GetHostName();

textbox.text=myHost.tostring();

for this u must using the

namespace

Using System.Net;

changing the method u got the ipno,port no etc



 
#298059    Author: Miss Meetu Choudhary        Member Level: Gold      Member Rank: 14     Date: 22/Sep/2008   Rating: 2 out of 52 out of 5     Points: 5

For this purpose You have to use the namespace

Using System.Net;

any there you will find lots of methods related to the DNS or NET
for the port number you can go for the method
gethostname or gethostbyaddress


--
I Would Love To Change The World But They Wont Give Me The Source Code

Spread D Smile n Never Say Bye

May Lord Shiva Bless All of US
Thanks and Regards
Meetu Choudhary
~~MEET~~

Thanks and Regards
Miss Meetu Choudhary (Site Coordinator)
Go Green Save Green
My Profile on Google



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : if a user tries to enter a page by changing d url, an error shl occur..how??
Previous : help in inserting data
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.