- Jul 14, 2008
- 1,161
- 1
- 0
Well right now I have summer holidays, so i thought I will make a Type Racer sort of game.
Now the problem is that when i try to make a socket and establish a connection to a port, Vista is denying me access.
I have added the port number to the exception list in my firewall.
If it helps here is the code.
Now the problem is that when i try to make a socket and establish a connection to a port, Vista is denying me access.
I have added the port number to the exception list in my firewall.
If it helps here is the code.
I'm even unable to ping to that portPrivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim tcpclient As New Net.Sockets.TcpClient()
tcpclient.Connect("GS1", "6363")
Dim netstre As NetworkStream = tcpclient.GetStream()
Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes("Is anybody there")
netstre.Write(sendBytes, 0, sendBytes.Length)
Dim bytes(tcpclient.ReceiveBufferSize) As Byte
netstre.Read(bytes, 0, CInt(tcpclient.ReceiveBufferSize))
' Output the data received from the host to the console.
Dim returndata As String = Encoding.ASCII.GetString(bytes)
texta.Text = returndata
End Sub