Ports...... Unable to get access

polarbear6

Golden Member
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.
Private 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
I'm even unable to ping to that port

 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Is the server/desktop GS1 listening on port 6363? You can only connect to an open port that is actively listening for requests. Have you tried to telnet to that server and port?
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,696
4,658
75
You can't ping a port. You're looking to connect to a TCP port, and ping only sends ICMP packets.

Now, the first thing to do is make sure your computer knows where "GS1" is. Type "nslookup GS1" at a command prompt. If it says "DNS request timed out.", use the computer's IP address instead. (You can get that on the destination computer by running "ipconfig" at a command prompt.)
 

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
Well i just started out at network programming, so i was pretty much a noob .........
I forgot that some thing needs to listen to the 6363 port.I forgot to make a server. Now its working alright.

Thanks guys thanks a lot.My bad. Really sorry

Well right now I'm looking at some free Db hosts.........

Any ideas.. about free DB hosting.....and socket hosting ??