Ive been asked to add a web component to one of my applications so users can add settings to the app from another pc by a web interface.
The gui works great, and I was happy with users just entering data on the software, but users needs must :-(
Ive been reading up on it, and belive I just need to listen on port 80, and serve content. My initail test code seems to pickup that someone is accessing the site, but I cant seem to get it to send the data to the web browser.
My code currently stands at:-
Public Class Form1
Dim ipAd As IPAddress
Dim myList As TcpListener
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
myList = New TcpListener(IPAddress.Loopback, 80)
Dim s As Socket = myList.AcceptSocket
Debug.Print("Connection accepted from " & s.RemoteEndPoint.ToString)
Dim asen As New ASCIIEncoding
Does anyone have any information on what I can do?