Follow us on Twitter!
The important thing is not to stop questioning. - Albert Einstein
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 15
Guests Online: 11
Members Online: 4

Registered Members: 82895
Newest Member: kevy90
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Communication in VB.net

BluePain
Member

Your avatar

Posts: 87
Location: 127.0.0.1
Joined: 28.08.06
Rank:
Newbie
Posted on 30-08-06 21:07
Hello I am trying to make a program that can make a communication port between 2 computers on a LAN. You have 2 files A sender and a reciver. It works. But when I open it there comes a funny error that says there have been some conflict. So if somone could help me with this I would be greatefull. And yes, there are one more thing. I would like the sender program to send comands to the computer that have the reciver on. So if I would like to open a MsgMessage on the other computer that say hello. So would it open. It are a one way pro that only send commands. Because I havent had time to make it work two way. So if any one are kind enough help me.

Here is the files in a .zip map I contens may proscejt for the reciver and the sender:

www.cookiefi.net/etheral.zip
Author

RE: Communication in VB.net


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 30-08-06 21:21
well i dont feeling like dl'ing it however, i have one of these already made. I am assuming you are using Winsock, yes? if not i can't help ya really.


Author

RE: Communication in VB.net

BluePain
Member

Your avatar

Posts: 87
Location: 127.0.0.1
Joined: 28.08.06
Rank:
Newbie
Posted on 30-08-06 21:27
chislam wrote:
well i dont feeling like dl'ing it however, i have one of these already made. I am assuming you are using Winsock, yes? if not i can't help ya really.


Yes, I am using winsock.
But you did say that you have made one of these allready.
If I could have a look at your code. (I dont mean to be roude (is that right spelled? I am not so good at english) I would be wery thanks fuly for that)
Would that be some big help for me so I have somthing to go after. But if I cant I respect that . And thanks for your helping Smile
Author

RE: Communication in VB.net


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 30-08-06 21:32
well it is actually coded in vb not vb.net i just realized you are coding .net but do you still want to see the code?


Author

RE: Communication in VB.net

BluePain
Member

Your avatar

Posts: 87
Location: 127.0.0.1
Joined: 28.08.06
Rank:
Newbie
Posted on 31-08-06 16:08
Yes, why not. It cant be that hard to convert it to vb.net, and I will see what it is like to do it in a nother languae and that cant be bad. It is better to se one thing frome more then one angel...
And thanks for the help Smile
Author

RE: Communication in VB.net


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-08-06 17:30
here is the server side -

Private Sub Form_Load()
Winsock2.LocalPort = "166"
Winsock2.Listen
End Sub
Private Sub Command1_Click()
Winsock2.Connect Text3, "165"

End Sub

Private Sub Command4_Click()
Data = Text1.Text & ": " & Text2.Text
List1.AddItem (Data)

Winsock2.SendData Data
Text2.Text = ""
End Sub

Private Sub Command6_Click()
Winsock2.Close

End Sub

Private Sub winsock2_dataarrival(ByVal bytestotal As Long)
Dim cht As String
Winsock2.GetData cht, vbString
List1.AddItem (cht)
End Sub




here is the client side


Private Sub Command1_Click()
Dim chat As String
chat = Text1.Text
List1.AddItem (chat)
Winsock2.SendData chat
Text1.Text = ""

End Sub

Private Sub Form_Load()
Winsock2.LocalPort = "166"
Winsock2.Listen
End Sub

Private Sub winsock2_connectionrequest(ByVal idrequest As Long)
Winsock2.Close
Winsock2.Accept idrequest
End Sub
Private Sub winsock2_dataarrival(ByVal bytestotal As Long)
Dim cht As String
Winsock2.GetData cht, vbString
List1.AddItem (cht)

End Sub


It might not work how it is right now because i was messing around with it. it pretty much just sends messages back and forth tho.


Author

RE: Communication in VB.net

BluePain
Member

Your avatar

Posts: 87
Location: 127.0.0.1
Joined: 28.08.06
Rank:
Newbie
Posted on 01-09-06 07:40
chislam wrote:
here is the server side -

Private Sub Form_Load()
Winsock2.LocalPort = "166"
Winsock2.Listen
End Sub
Private Sub Command1_Click()
Winsock2.Connect Text3, "165"

End Sub

Private Sub Command4_Click()
Data = Text1.Text & ": " & Text2.Text
List1.AddItem (Data)

Winsock2.SendData Data
Text2.Text = ""
End Sub

Private Sub Command6_Click()
Winsock2.Close

End Sub

Private Sub winsock2_dataarrival(ByVal bytestotal As Long)
Dim cht As String
Winsock2.GetData cht, vbString
List1.AddItem (cht)
End Sub




here is the client side


Private Sub Command1_Click()
Dim chat As String
chat = Text1.Text
List1.AddItem (chat)
Winsock2.SendData chat
Text1.Text = ""

End Sub

Private Sub Form_Load()
Winsock2.LocalPort = "166"
Winsock2.Listen
End Sub

Private Sub winsock2_connectionrequest(ByVal idrequest As Long)
Winsock2.Close
Winsock2.Accept idrequest
End Sub
Private Sub winsock2_dataarrival(ByVal bytestotal As Long)
Dim cht As String
Winsock2.GetData cht, vbString
List1.AddItem (cht)

End Sub


It might not work how it is right now because i was messing around with it. it pretty much just sends messages back and forth tho.


Thanks that really helped... Thanks for all your help. Grin Is there sombody else that have an ide?
Author

RE: Communication in VB.net

BluePain
Member

Your avatar

Posts: 87
Location: 127.0.0.1
Joined: 28.08.06
Rank:
Newbie
Posted on 01-09-06 07:57
Oh I forgot to ask... Witch VB is it written in? vb 6, 5 ,4 ect...
Author

RE: Communication in VB.net

BluePain
Member

Your avatar

Posts: 87
Location: 127.0.0.1
Joined: 28.08.06
Rank:
Newbie
Posted on 01-09-06 07:57
Oh I forgot to ask... Witch VB is it written in? vb 6, 5 ,4 ect...