VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 300,396 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,618 people online right now. Registration is fast and FREE... Join Now!




Client Server application

 

Client Server application, TcpClient

Buschman

21 Dec, 2008 - 09:22 AM
Post #1

New D.I.C Head
*

Joined: 21 Dec, 2008
Posts: 2

Hope i did not make already existing topic rolleyes.gif or did somthing wrong by making one biggrin.gif so here is my question i wish to make a smal client that uses tcp.net.socket in vb 2008 and i that i can wright ip adress and port on client visual side like textbox or combo box and that he saves the values of this text boxes in ini or any other file for later recover / use .... i thnx in advance evryone who decides to help me biggrin.gif ps sorry for bad englisch and some code examples vuld be great cose i tryed msdn and many other sites including google biggrin.gif and found nothing that say´s how to do this sad.gif

User is offlineProfile CardPM
+Quote Post


Jayman

RE: Client Server Application

21 Dec, 2008 - 09:47 AM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 8,544



Thanked: 226 times
Dream Kudos: 500
Expert In: Everything

My Contributions
You must not have looked very hard. Here is the top two results from Google.

http://www.eggheadcafe.com/articles/20020323.asp
http://www.codeproject.com/KB/IP/filesharingvb7.aspx
User is offlineProfile CardPM
+Quote Post

Buschman

RE: Client Server Application

21 Dec, 2008 - 10:07 AM
Post #3

New D.I.C Head
*

Joined: 21 Dec, 2008
Posts: 2

hi thnx for replay smile.gif iv done this like this
CODE
Public Class frmClient
    Private Sub ClConnect_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ClConnect.Click
        Dim TcpClient As New System.Net.Sockets.TcpClient
        Dim Ip As IPAddress = IPAddress.Parse(ClIp.Text)
        Dim Port As Int32
        Port = ClPort.Text
        ClIp.Text = AccessibleRole.IpAddress
        TcpClient.Connect(Ip, Port)
    End Sub


ClIp=TextBox
ClPort=TextBox


and it seams it is working cose i get tcpCliet.sock exeption that there is no connection but that is cose iv did not make a server that listnen yet but how do i make the same with server only he schuld listen on some port (value shuld be in tectBox or ComboBox ) and some ip or dns sad.gif wacko.gif hope you culd help me with this smile.gif
User is offlineProfile CardPM
+Quote Post

EMMADDAI

RE: Client Server Application

2 Jul, 2009 - 06:53 AM
Post #4

New D.I.C Head
*

Joined: 15 Nov, 2006
Posts: 11


My Contributions
so what about if i wanted to use this TCPCLIENT to post a file to a server?
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 10:03PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month