Server/Client - Basic Tcp Server/client Application

Mar 30, 2009

I've basically made a basic tcp server/client application. The thing is that I'm behind a router and so will be the other people that use my clients. I've had to use port-forwarding or the software "rinetd"to run quite a few applications online.

Let me explain: I'm on a lan network that connects to the internet. Whenever I want to host a server - for instance a basic ftp or http server. If I give my external IP to anyone, they won't be able to access my server. Even if I portforward, it doesnt work. I have to use rinetd here. For other applications, portforwarding works. I'm not sure how these things work at all.

Anyway, my issue now is that I have created this server/client application. I'm having serious doubts that if I run the server, I'll have to either a) portforward or use rinetd to get people to connect to my server. IF I need to portforward, that's fine. However, using rinetd would really suck... My 2nd concern is as follows: IF the person running the client is in a similar situation as me (i.e he's on a lan that has a router which connects to the net), will he have to portforward or use rinetd as well? If he portforwards that's fine. But I don't think I could get people to use rinetd.... Also, if there are more than 1 person on a lan trying to connect to my server, there is a big problem when they try to portforward: they will only be able to allocate one of their internal ip to that port, and the others won't be able to connect, right? How does this work? I mean, I use many softwares like msn/skype/(some games)/firefox that do not need portforwarding/rinetd. Yet they work. My housemates(other people on the lan) use the same softwares, and it works fine. There's no clash/probs watsoever How come these run fine?

Anyway, back to my issues. Given I have no knowledge about how the above work, I was wondering whether there was a way to host a vb .net server application on an external website (external to my house) so that I might *avoid* the above mentioned problems, and to what extent that would be a sound solution.

View 11 Replies


ADVERTISEMENT

VS 2008 TCP Server / Client - Client To Send The Server 4 Numbers - Depending On The User's Choice

May 9, 2009

how to create a client/server... But I couldn't... I don't want anything fancy. Just want the client to send the server 4 numbers, depending on the user's choice; after that, the server would turn off the pc, restart it, etc. It all depends on the number received. Is there a rather "simple" way to do it? If it's not to much trouble you could use Atheist's example. (Btw I don't understand the code and, yes, I've checked on [URL])

View 9 Replies

VS 2010 : Send Data From Client To Server (encrypted) And The String Sent From The Client Is Not The Same As Received From The Server?

Jun 27, 2011

Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.

Client:

Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)

[code]....

View 4 Replies

Client-Server-Client Multithreading - Instant Message Another Client

Jun 21, 2010

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.

[Code]...

View 2 Replies

Create Client-server App, In Which Client Can View Files On Server?

Nov 15, 2011

basically i just want client to say "C: emp" ENTER

then, server must reply with all its files in c: emp

View 1 Replies

Communications :: Client-server Communication Program - Click On CmdListen In The Server Form And CmdConnect In The Client Form

Jul 23, 2008

The problem I have is: When I click on cmdListen in the server form and cmdConnect in the client form,both programs won't respond and they crash for some reason I don't know.

Client source code:

Code:

Imports System.Net.Sockets
Imports System.Text
Public Class Form1

[CODE]...

Code:
Imports System.Net.Sockets
Imports System.Text
Public Class Form1

[CODE]...

View 3 Replies

SQL Server 2008 Configuration For Client Server (Windows Form) Application

Apr 6, 2012

Case : I'm creating an application (desktop application) with VB.NET (actually windows form), and using SQL Server Express 2008 for its database.

[Code]...

View 1 Replies

Client Server Application - How To Make Clients On Sql Server

Sep 24, 2010

How to make clients on sql server i mean when i will install my application on clients how i will connect it with sql server?

View 6 Replies

Encrypt Some Basic Data Being Sent From Server To Client?

Oct 11, 2009

I need to encrypt some basic data being sent from server to client.

I was going to open a file in bytes, convert it to chrs (Modify odd numbers by adding 2 and even numbers by adding 3) then use Base 32 (Triacontakaidecimal) or Base 16 (although base 16 will occupy twice the space). Convert the data back to bytes and after do the same with the decryptor.

About using base 32, is there some sort of class in vb.net or maybe an api?

View 3 Replies

Build Client-server And Sql Server Application?

Oct 26, 2009

i'm newbie in this programming..i need some references or a starting guide to build an sql server and vb.net application.

View 3 Replies

Client Needs To Have Sql Server On His Machine If Application Uses Sql Server?

Jul 16, 2009

I am creating small application (desktop search engine) which uses sql server as back end. Sql server is used to store huge data using indexing (for quick search). Is it necessary that client should have sql server on his machine to run the application? I don't want to install sql server on client's machine, because my application is just a small utility.Is there any other way so that I can store huge data using indexing?

View 2 Replies

VS 2010 Attempting To Make Basic Client/Server?

Jan 6, 2011

Im trying to make a basic Client/Server. The server can handle multiple clients and each client can send /recieve messages from the server.It works fine with just 1 client. but as soon as i connect with a second client. The first one no longer works. Anything sent from the first client is ignored by the server and when running the server in debug mode it gets errors from the client 1 stream.

Its as if the server will only hold one stream at a time and whenever another client joins the other streams are shut but the new client works fine. Even though i never close a stream.

[Code]...

Edit: FINALLY FOUND IT! Stupid mistake i forgot to put the ClientN variable up by one for each new client.So i was creating a new space in the array but erasing the first slot for the new client

View 2 Replies

Writing A Program With 1 Client And Server Where Client Side Creates A Text File

Dec 1, 2008

I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.

View 14 Replies

VS 2008 Chat Server/client - After The Client Clicks Disconnect Or Closes By Task Manager, Looses Connection

Aug 18, 2009

Im using the code from [URL] as a starter, most of the code is the same. the chat system works fine but on the client a added a disconnect button "clientSocket.Close()" and as soon as i click that i get errors, on the client, this is the code...

Private Sub getMessage()
For infiniteCounter = 1 To 2

[CODE]...

And this line...

serverStream.Read(inStream, 0, buffSize)
gives me "Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall."

Now im talking the server, after the client clicks disconnect or closes by task manager, looses connection, etc the server crashes and gives me.

View 5 Replies

VS 2008 Create A Client / Server Chatroom Using TCPClient In Visual Basic

Jan 6, 2010

However I have hit a massive brick wall with my program. My program that I'm trying (can't emphasis this word the importance of that word) to create a Client/Server chatroom using TCPClient in Visual Basic. So far I can get my client to speak to my server. However, i'm trying to get the returned data to display in a listbox which never happened, i then tried a label, which again never happened then a text box which I'm sure you can figure out how that went! I'm not great at networking programmers nor am I not bad I'm terrible but duty calls when it comes to projects.

The code I currently have was mostly taken from the net but when I have the program fully work and I understand how the software works I intend to heavily modify for it to suit the needs of what I need to achieve. where I can get my client to display the data from the server that I have already sent to the server (which displays successfully within the server).

[Code].....

View 2 Replies

Combobox Unhandled Exception - Make A Basic Winsock Chat Server And Client?

May 31, 2009

I want to make a basic winsock chat server and client, and I just need to know the basics, like.How do you determine where to send the data?How do you determine where to receive data from?How to actually send and receive the data?I just don't want to read from a website that has a lot of extra information. I just want to start off with the basics so I can actually learn.

View 2 Replies

Chat Client To Client Without Server Just Use IP Address For It?

Apr 19, 2012

Chat Client to Client Without Server Just Use IP Address For it?

View 1 Replies

Client Server Application In .net?

Jun 4, 2011

i am creating a client server application using vb.net with odbc as my data source to sql server 2005.send me a code that will enable the application running on a client machine to connect to a remote server.the application is to run on LAN and other client machines are on same domain.

View 1 Replies

Application Is Now Running On Server Or Client?

Nov 8, 2010

I use VB.NET for a Windows application.

How can I find out if the application is now running on a server or client (programmatically)?

View 1 Replies

Build A Client Server Application?

Jun 3, 2011

i currently have a project. The application created in this project will be located in a server, and some machines can access this application at the same time. The problem is, i don't know what's needed to connect that application to several machines. I know how to build this application and run it in a single machine, but i have no idea about running this on server.

View 3 Replies

Client Server Windows Application

Oct 28, 2009

I have developed 2-3 standalone windows application using VS2008(vb.net) + Sql server (2008,2005) and quite comfortable with stand alone windows application. Now i am trying to make a windows app which will share a server database on LAN. I googled alot about this but still no success. So i decided to make that as stand alone app and i just changes the connection string to use remote server database. Everything is working fine still. All the insert, update and delete query are same as stand alone n me not getting any problem while testing through one more remote client system. But while googling i heard abt "CONCURRENCY" control.So please guide me is anything wll b wrong in future wid my this application when i will deploy this to my users? What about locks and how can i implement this to my Insert, update and delete queries to control concurrency and maintain integrity ?Please guide me step by step becoz i m new be to client/server application.

View 7 Replies

Client-server Chat Application

Jan 15, 2012

I made one client-server chat application using vb.net. I want to know how can i change the form/icon color when a client sends a message and vice versa.

for eg: like in yahoo messenger or msn messenger,etc, How i user knows when he receives an message.

View 1 Replies

Create A Server And Client Application?

Jun 7, 2009

I am trying to create a a server and client application. All that I want to do is have a client that has a picture box. The server will send an image to the picture box and the client will display it. I have looked online to find some tutorials but most of them just show how to do a connection and usually only with a console application.

View 3 Replies

Create An UDP Server/Client Application?

Jul 8, 2011

Create an UDP Server/Client Application?

View 3 Replies

Creating A Server Client Application

Jan 21, 2011

First of all, I want to say sorry if this is not a correct forum. I have built several standalone applications up until now. But now I need to create a server client application, the only database is on the server. The application itself is installed on all the client computers but not all of them are granted the same level of access to the database.

[Code]...

View 13 Replies

MultiThread In Client Server Application?

Aug 9, 2009

SERVER
Im using this code:
Imports System.Threading
Imports System.Net.Sockets

[code]....

but when i tried to run the application, it hangs even if i wait several minutes.., is there something wrong with the code..

View 1 Replies

Server Client Interface Application?

Apr 13, 2011

I want to create a server client application in which The server will communicate with the client and give them commands. I did the same in visual basic 6.0 using Winsock component.Now I want it to implement using Visual Basic 2008, how to do it and which component to use.

View 5 Replies

Access Or Run File From Server In The Client Application?

Sep 15, 2011

I would like to ask some advise for the best thing to do regarding with this matter. Im working with a client-server application and I should run a pdf file from the server in the client application. The file name is the only saved in the database(MySql) and the full path is in the server. What technique should i used i order to access this file in the server., I planned to use the winsock. Im working in vb.net.

View 1 Replies

Client Server Application That Uses File Sharing

Mar 3, 2009

I want to build an application(the client and server) that the clients would be able to see and modify only certain files on the server depending on their credentials. For example, a specific client can read/modify a word file, but another cannot. And the server should specify which client has which rights. After a client has made any change in a file, every other clients should be notified by email. I've read some articles about .Net Remoting but I still don't know how to make a client see/modify files on the server.

View 1 Replies

Connect VB Client Application With SQL Server Using TCP Connection (LAN)?

Feb 15, 2012

I've been Searching the Net for hours now, and i can't really seem to find anything clear and straight to the point.

I need to create a Server/Client application using VB.net 2008, it's actually my first time to have a database on another computer. So I first searched the internet for the things i need to make this software.

[code]...

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved