Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
Talk to Webmaster Tony John
Online Members
Pawan Awasthi
Shine S
More...
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
Tweet
Responses
#297978 Author:
sathya
Member Level:
Silver
Member Rank:
0
Date: 21/Sep/2008 Rating:
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:
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
.
Tweet
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
Validation Controls
no of click on advertisement in asp.net application
Please Please help.................. tooo urgent
Please tell me .Net interview Questions for 2+ Years Exp
To upload Documents like(doc,pdf,etc) to file system
Follow us on Twitter:
https://twitter.com/dotnetspider
Active Members
Today
Pawan Awasthi
(49)
Phagu Mahato
(10)
Raj.Trivedi
(9)
Last 7 Days
baskar
(298)
Asheej T K
(173)
Ultimaterengan
(167)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds