Set httplistener Port

I want to listen to a single port with an HTTPLISTENET in VB.Net

How is that done?
Larry Bristersr. DeveloperAsked:
Who is Participating?
 
CodeCruiserConnect With a Mentor Commented:
You have to add a prefix to listener's Prefixes collection

Listener.Prefixes.Add("http://*:PortNumber/")

http://msdn.microsoft.com/en-us/library/system.net.httplistenerprefixcollection.add.aspx
0
 
Larry Bristersr. DeveloperAuthor Commented:
Sorry for the late get back.  Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.