How To Know Where The Other End Of The NetworkStream From The 'server' Computer

Jul 3, 2009

How do I know where the other end of the NetworkStream from the 'server' computer? I have been looking at the following code that comes from a post out here, and am wondering where I can tell where I am going to send back to(URL/port)?

Private Sub DoListen()
Dim incomingClient As System.Net.Sockets.TcpClient
Do

[code]....

View 5 Replies


ADVERTISEMENT

Turning Computer Into File Server (ftp Server)?

Oct 20, 2009

Are there any good tutorials/links I can work through. I want to make my pc a file server or an ftp server through vb.net. How would I go about doing it?

View 5 Replies

Connect To SQL Server On Another Computer?

Jun 5, 2011

I have a webbased proj. What i need is to connect the vb.net app to an sql server via internet. My projects run fine in a standalone pc.

View 3 Replies

Connecting To SQL Server On Another Computer?

Jun 5, 2011

I always get error to connect my project in vb.net to sql server on remote computer?

View 7 Replies

Find Out Computer / Server Name?

Jun 22, 2010

How to findout computer / server name with vb.net codes. I want to use it in connection string

[Code]...

View 1 Replies

Why Isn't Server Accessible Outside Of Computer

Jun 5, 2012

I've created a Http Server in VB.net.I've used the same "template", I guess you could say, for every project requiring an Http Server (quite a few recently).The problem is, this one I'm working with now requires that the computers on the LAN be able to connect to it. I can access the server directly from my computer though using: [code]Now I get an error every time when it tries to apply the prefixes: I've checked all the ports that are listening and 8002 is still open...

View 2 Replies

Appropriate Method To Get Time Of Server Computer?

Oct 19, 2011

I do have my program running in a network. I have set one main computer as server and installed database system too. My other clients create transaction and saves it to database. Now I need to add date and time of server too in that record

View 1 Replies

Copy File From Other Computer(server)?

Apr 15, 2012

What I tried was using My.Computer.Network.DownloadFile(), and created a shared folder in the other computer to do downloading stuff.But, in fact I didn't know how to fill the path to the other computer, the error was: "...path not supported..."

How about this:
ServerName1 = cmbServerName1.Text.Trim()
database = cmbDataBase1.Text

[code]......

View 2 Replies

Find SQL Server Instance On Other Computer On LAN?

Aug 8, 2011

I have the following function to find a SQL Server instance. It works fine on local computer. Would you please tell me how to use this function to check an instance on other computer on a Local Area Network? I am using VS 2008 (.NET Framework 3.5) and SQL Server Express 2005.

Private Function MyInstanceFound(ByVal MyInstanceName As String) As Boolean
Dim InstanceFound As Boolean = False
Dim MC As ManagedComputer = New ManagedComputer()

[code].....

View 1 Replies

Find-out Computer / Server Name With .net Codes?

Dec 29, 2009

How to findout computer / server name with vb.net codes.I want to use it in connection string

con = New Data.SqlClient.SqlConnection("Data Source=noor;" & _
"Initial Catalog=accounts;Integrated Security=True")

View 3 Replies

SQL Server Name On Local Computer Not Network?

Jul 18, 2012

how to find the list of SQL servers on the local machine...and not the network...

I searched in google but everywhere its for the list of SQL servers on network....I just want my PC SQL server name....

View 4 Replies

Connect To Sql Server 2005 Or 2008 By VB From Another Computer ?

Jul 15, 2010

how can connect to sql server 2005 or 2008 by vb.net from anther computer ? and this computer donot have sql server.i made search on internet and result was use sql client tools but i made search and try to download sql client tools but i did not get any result.so how can i connect to sql server 2005 or 2008 by vb.net on anther computer or on network LAN.

View 4 Replies

Wan Connect Server Is Another Computer Localhost Database

Jun 1, 2010

What happen if i want connect to a database server is not my computer local host, is another computer localhost in LAN network? how it works? [code] how about i wan connect the server is another computer localhost database?

View 1 Replies

DB/Reporting :: Connect Database In Server From A Client Computer?

Feb 24, 2008

I wrote a program in VB2005. It is a program that is supposed to run in a client computer accessing an MS Access .mdb file stored in the server. The program itself is stored and run in the clients computer. I am not good in networking at all. The way I do it now is:

1. Have a directory made in the server to hold the MS Access .mdb file, and have the directory to be shared.

2. Have the same directory accessed and mapped in the client computer (say to Z:)

3. Then have the program in the client computer simply access the database as if it is in the same computer (as the directory already mapped into the client computer). In the VB 2005, this is done when we set the connection string of the database connection.

However, my user is complaining that by doing so, the database is basically exposed to the operator of the client computer (through the mapped directory), hence more vunerable for any bad intentions from persons who may have access to the client computer but not the server. He insists that he used to have a program that does exactly the same thing like my program, but the database is shielded in the server, where it cannot be seen in the client computer (I have other people who confirm that this can be done, though they can't tell me how, since they are not programmers themselves). Now, I have no idea on how to connect a database that way, and I don't even know where to start looking.

View 1 Replies

What Modified Will Be In A Project That Is In .net And Used Backend SQL Server 2005 To Run On Another Computer

Nov 24, 2010

Tell me if I want to run a project that is created in vb.net 2010 and uses a backend SQL Server 2005.........how many changes can be done in a project to run on another computer....?what connection string I can write for it.......?which software do I need to install on the other computer to run a project on it.......

View 1 Replies

Adding A Data From More Than 1 Computer To A Database That Is Locate On Central Server

Jan 1, 2011

My application is in VS 2008 (vb.net Windows form)

I want tips for this:

What types of care I take for it?

What types of problems can be generally happen?

View 1 Replies

C# - Fetch Website Source Based On Client Computer Rather Than Server In ASP.NET?

Mar 21, 2012

I am using the following code to fetch html source website.

private string Extract_Source(string url)
{
string output = "";
System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(url);

[code]....

It can fetch source properly but the problem is it fetch website source based on server from where script executed (i mean where website hosted), but i want to fetch content based on client information (ip etc)

View 1 Replies

Get The Hardware Info Of Server (similar To Win32 For Individual Computer)?

Oct 25, 2008

Up to now, my programs are installed in individual computers, and I use the data collected using Win32 classes (such as bios, board, and processor) to lock my program to those computers to avoid piracy. However, I am currently preparing two programs that will be installed in servers and accessed by more client computers. My problem is that I once read some ways of doing the same thing with server (accessing the hardware info of the server), but I simply can't find it again in my archive. My idea is simply to lock the program to the hardware info of the server computer, so wherever the person runs the program, it will be first checked the server hardware info, if it matches, only then, it will run. My client server is Windows Server 2003, and I am programming with VB2k5.

View 1 Replies

Access A Web Server To Download A File But My.computer.network.downloadfile Not Working

Dec 27, 2011

I'm trying to access a web server to download a file, but when I run the statement gives me the following WebException:

[Code]...

View 7 Replies

SQL - Make Application To Detect Itself The Name Of Server Present In Computer And Use It In Connection String

Oct 1, 2010

Ok I have a question about connection string in vb.net. Im using the string [Code] but here I am specifying the serverName by its name, now if I deploy my application and send it to another person to use it I see that server name is changing according to the name of the computer. Is there any way where by I can make my application to detect itself the Name of the server present in that computer and use it in connection string?

View 2 Replies

Use For Reading From A Networkstream?

Jan 8, 2010

I know it's subjective but this was the result I came up with based on the answer to me previous question and it seems a bit "slapped together", as I have changed it quite a bit:

[Code]...

Basically is there a better way to write this (even just part of the code) or a more efficient way to do it?

Basically the code is there to read all the bytes from a networkstream 1024 bytes at a time. And each time it reads the bytes it puts into one array which is returned.The thing i think might be better is only Redim byteTempbuffer if intRead is less than 1024 (the redim is to prevent empty bytes from being added to the end of the array when there are less the 1024 bytes left to read from the networkstream) (basically is it more efficent to Redim every time or to go through and if statement and redim only if needed)

View 1 Replies

Load Image From Networkstream As Bmp?

Mar 18, 2010

How would i load and image from network stream as bmp?For example the client sends a image thats jpg. but the server displays the image on a picture box property as bmp.

View 3 Replies

NetworkStream - Finding Out What Is Being Received

Sep 5, 2010

This question is about trying to find a way of telling what is being sent of the NetworkStream as in whether it is Text or Binary. For example I could have a Server program on my Girlfriends computer and the Client Program on mine, two functions on each:

Server: Textbox for catching any text sent (like a chat for example) and a function for receiving files (like an EXE or others)
Client: Textbox for sending text to the client (again like chat) and a function for sending files (again like EXE or others)

How do you code the server to tell it how to determine which is which (Binary or Text) and further more what if the file being sent isn't an EXE, what if its an image or a text file or other type? I already know how to send a file through to the server and put it back together on the other side but thats only sending an EXE file. I'd want to enable an update functionality in the server so it can receive a message from the client saying its sending through an update which once the server gets the message it will know what to do on the other end (i.e. stopping itself whilst the update.exe is running and copying over the new file).

View 8 Replies

Networkstream File Transfers?

Jun 22, 2010

I am attempting to write a vb.net 2008 application that will allow me to send files from a server to a client based on a request. I am going to post the same console application code below. When i run the server and the client on the local machine, i can get my file update and it works just fine. When i go to a different machine on my network and attempt to connect to the server and download the file, i get the correct file size but the file, when i attempt to run it, says "not a valid win32 application". Now with a little testing, this can be any executable that i send over the network through my update software.

------
SERVER
------
Imports System.Net.Sockets
Imports System.IO

[code]....

View 1 Replies

Networkstream.read Not Responding?

Jun 8, 2012

I am new to vb.net programming. I am trying to connect to a device using TCP/IP.I am trying to send a command "Z<CR>" where Z is a character and <CR> is a ASCII value of 13. How can i do this in one statement?

I have written following code, but my program stops responding at .read statement:

[Code]...

View 2 Replies

Sending An XML File Via NetworkStream?

Jun 28, 2010

I have an XDocument ready to be sent out via Network stream, what do I need to get it working? I am connected via networkstream and can send regular text, but I don't know how to send an XML Document, I use the networkStream.write() function to send in text.

View 2 Replies

Sending Some Data Over A Networkstream

Jul 31, 2009

I am sending some data over a networkstream. The datasize is 97 The buffersize is 1. Data is a list of bytes. When the bytecount reaches 94 the do while loop exist itself.

[Code]...

View 2 Replies

.NET Socket Networkstream.read Different Results?

Jul 22, 2012

I am doing client/server socket based project and currently I am having some troubles with the recieved result.What I mean ... this is part of the client which is receiving

tcpClient.Connect(address, Port)
Dim
bytes(tcpClient.ReceiveBufferSize) As
Byte

[code]....

Where file is just a simple file name send from the server. What I recieve is for example: test.txt%00%00%00%00%00%00%00%00 etc. The server and the client are using the same encoding ASCII.

View 1 Replies

Error Reading Image From Networkstream

Jun 1, 2011

I have some troubles reading an image from a networkstream.Every time the when program runs this procedure its shuts down without a warning.[code]...

View 11 Replies

Networkstream Write Only Returns First Result (need All)?

Mar 19, 2012

My code looks very similar to this post Read bytes from NetworkStream (Hangs), which I copied below. ( I realize this is c# - I need a vb solution)

[Code]...

My issue lies in this:

I have a form that takes user input on which tif file(s) to find (which ends up being the getBytes(message) ). When one does this, it always returns one result - the first tif file that fits the criteria, However, I know in certain instances I should recieve more than one match.

Then I send the results to a picturebox and should be able to scroll through results (which this part works fine)I've tried a few ways to get multiple results, but maybe I'm missing the obvious? My best guess is using the asyncronous beginread/write.I've attempted using a for loop but I end up getting a bunch of the same tif files as a result..

View 1 Replies







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