473,769 Members | 2,078 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET Remoting

I am trying to set up two VB.NET Applications. One to sit
on the server and run and the other to sit on a client
computer and connect to the server application and for the
server application to send data to the client application.

Well, when I'm trying to connect to the server application
from the client application I get the followng error:
No connection could be made because the target machine
actively refused it.

But, when I try to just connect the two applications via
localhost to localhost it works just fine. Anyone who has
any ideas on how to correct this would be greatly
appreciated.

Thanks

M.Perry
The following set of code is how I set up the Server
Listener:

<DnsPermissionA ttribute(Securi tyAction.Demand ,
Unrestricted:=T rue)> Public Class clTOAServer
Inherits MarshalByRefObj ect
Private thServer As Thread

Public Sub Main()
thServer = New Thread(AddressO f ServerListener)
thServer.Start( )
End Sub
Public Sub ServerListener( )
Const toaPortNum As Integer = 8080

Dim clientIP As IPAddress = IPAddress.Parse
("171.172.56.33 ")
Dim toaListener As New TcpListener(cli entIP, toaPortNum)
toaListener.Sta rt()
Try
Dim tcpClient As TcpClient = toaListener.Acc eptTcpClient()
Catch
......
End Sub
The following is how I set up my client class to connect
to the server class:

Public Shared Property GetServerObject s()
Get
Dim aryReturnData As Array

Dim tcpClient As New System.Net.Sock ets.TcpClient

Dim serverIP As IPAddress = IPAddress.Parse
("171.172.55.15 4")
tcpClient.Conne ct("171.172.55. 154", 8080)
End Get

End Property
Nov 20 '05 #1
4 8691
Where to start ?

Can you connect to this machine ( server from your client ) with other
network enabled applications using your current logon ?, if not thats your
win32 Security stopping you !

If not we need to know more details on how you are trying to connext and
what you are trying to do.



"M.Perry" <mp******@aol.c om> wrote in message
news:0c******** *************** *****@phx.gbl.. .
I am trying to set up two VB.NET Applications. One to sit
on the server and run and the other to sit on a client
computer and connect to the server application and for the
server application to send data to the client application.

Well, when I'm trying to connect to the server application
from the client application I get the followng error:
No connection could be made because the target machine
actively refused it.

But, when I try to just connect the two applications via
localhost to localhost it works just fine. Anyone who has
any ideas on how to correct this would be greatly
appreciated.

Thanks

M.Perry
The following set of code is how I set up the Server
Listener:

<DnsPermissionA ttribute(Securi tyAction.Demand ,
Unrestricted:=T rue)> Public Class clTOAServer
Inherits MarshalByRefObj ect
Private thServer As Thread

Public Sub Main()
thServer = New Thread(AddressO f ServerListener)
thServer.Start( )
End Sub
Public Sub ServerListener( )
Const toaPortNum As Integer = 8080

Dim clientIP As IPAddress = IPAddress.Parse
("171.172.56.33 ")
Dim toaListener As New TcpListener(cli entIP, toaPortNum)
toaListener.Sta rt()
Try
Dim tcpClient As TcpClient = toaListener.Acc eptTcpClient()
Catch
.....
End Sub
The following is how I set up my client class to connect
to the server class:

Public Shared Property GetServerObject s()
Get
Dim aryReturnData As Array

Dim tcpClient As New System.Net.Sock ets.TcpClient

Dim serverIP As IPAddress = IPAddress.Parse
("171.172.55.15 4")
tcpClient.Conne ct("171.172.55. 154", 8080)
End Get

End Property

Nov 20 '05 #2
Thank you for that information. I can not connect to the
server with my user logon information. Although, I can
map to the drive on the server using my administrative
rights, would this be sufficient enough to allow for the
connection to the server from my client machine.

Thanks,

M. Perry

-----Original Message-----
Where to start ?

Can you connect to this machine ( server from your client ) with othernetwork enabled applications using your current logon ?, if not thats yourwin32 Security stopping you !

If not we need to know more details on how you are trying to connext andwhat you are trying to do.



"M.Perry" <mp******@aol.c om> wrote in message
news:0c******* *************** ******@phx.gbl. ..
I am trying to set up two VB.NET Applications. One to sit on the server and run and the other to sit on a client
computer and connect to the server application and for the server application to send data to the client application.
Well, when I'm trying to connect to the server application from the client application I get the followng error:
No connection could be made because the target machine
actively refused it.

But, when I try to just connect the two applications via
localhost to localhost it works just fine. Anyone who has any ideas on how to correct this would be greatly
appreciated.

Thanks

M.Perry
The following set of code is how I set up the Server
Listener:

<DnsPermissionA ttribute(Securi tyAction.Demand ,
Unrestricted:=T rue)> Public Class clTOAServer
Inherits MarshalByRefObj ect
Private thServer As Thread

Public Sub Main()
thServer = New Thread(AddressO f ServerListener)
thServer.Start( )
End Sub
Public Sub ServerListener( )
Const toaPortNum As Integer = 8080

Dim clientIP As IPAddress = IPAddress.Parse
("171.172.56.33 ")
Dim toaListener As New TcpListener(cli entIP, toaPortNum)
toaListener.Sta rt()
Try
Dim tcpClient As TcpClient = toaListener.Acc eptTcpClient () Catch
.....
End Sub
The following is how I set up my client class to connect
to the server class:

Public Shared Property GetServerObject s()
Get
Dim aryReturnData As Array

Dim tcpClient As New System.Net.Sock ets.TcpClient

Dim serverIP As IPAddress = IPAddress.Parse
("171.172.55.15 4")
tcpClient.Conne ct("171.172.55. 154", 8080)
End Get

End Property

.

Nov 20 '05 #3
Hello,

"M.Perry" <mp******@aol.c om> schrieb:
I am trying to set up two VB.NET Applications. One to sit
on the server and run and the other to sit on a client
computer and connect to the server application and for the
server application to send data to the client application.

Well, when I'm trying to connect to the server application
from the client application I get the followng error:
No connection could be made because the target machine
actively refused it.

But, when I try to just connect the two applications via
localhost to localhost it works just fine. Anyone who has
any ideas on how to correct this would be greatly
appreciated.


This is a VB.NET language group. Notice that you will have a better
chance to get an answer if you post to the Remoting newsgroup in future:

news://msnews.microsoft.com/microsof...ework.remoting

Web interface:

http://msdn.microsoft.com/newsgroups...ework.remoting

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4
Try running your code when signed on as administrator.

"M.Perry" <mp******@aol.c om> wrote in message
news:04******** *************** *****@phx.gbl.. .
Thank you for that information. I can not connect to the
server with my user logon information. Although, I can
map to the drive on the server using my administrative
rights, would this be sufficient enough to allow for the
connection to the server from my client machine.

Thanks,

M. Perry

-----Original Message-----
Where to start ?

Can you connect to this machine ( server from your

client ) with other
network enabled applications using your current logon ?,

if not thats your
win32 Security stopping you !

If not we need to know more details on how you are trying

to connext and
what you are trying to do.



"M.Perry" <mp******@aol.c om> wrote in message
news:0c******* *************** ******@phx.gbl. ..
I am trying to set up two VB.NET Applications. One to sit on the server and run and the other to sit on a client
computer and connect to the server application and for the server application to send data to the client application.
Well, when I'm trying to connect to the server application from the client application I get the followng error:
No connection could be made because the target machine
actively refused it.

But, when I try to just connect the two applications via
localhost to localhost it works just fine. Anyone who has any ideas on how to correct this would be greatly
appreciated.

Thanks

M.Perry
The following set of code is how I set up the Server
Listener:

<DnsPermissionA ttribute(Securi tyAction.Demand ,
Unrestricted:=T rue)> Public Class clTOAServer
Inherits MarshalByRefObj ect
Private thServer As Thread

Public Sub Main()
thServer = New Thread(AddressO f ServerListener)
thServer.Start( )
End Sub
Public Sub ServerListener( )
Const toaPortNum As Integer = 8080

Dim clientIP As IPAddress = IPAddress.Parse
("171.172.56.33 ")
Dim toaListener As New TcpListener(cli entIP, toaPortNum)
toaListener.Sta rt()
Try
Dim tcpClient As TcpClient = toaListener.Acc eptTcpClient () Catch
.....
End Sub
The following is how I set up my client class to connect
to the server class:

Public Shared Property GetServerObject s()
Get
Dim aryReturnData As Array

Dim tcpClient As New System.Net.Sock ets.TcpClient

Dim serverIP As IPAddress = IPAddress.Parse
("171.172.55.15 4")
tcpClient.Conne ct("171.172.55. 154", 8080)
End Get

End Property

.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2927
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to use them. No IIS. Use TCP, binary. Standard server example with a console host and console client. .NET 1.1, windows XP. (I tried posting to the remoting newsgroup, no answers in the last couple days, trying here in hopes that more people watch this...
0
1909
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others. Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
5
5689
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere 4.0, SourceOffSite 4.1, VSS Connect 1.5, SourceXT 2.1, VSS Remoting 2.5,
0
3292
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others.
4
3118
by: Uchiha Jax | last post by:
Hello everyone, I am a plenty silly person who is trying to learn .NET remoting through trial and error (all articles I read are going over my head at the moment (mostly) so I thought i'd give it a go). What I want to do is this: Have a server instance of the program, this server instance will receive communication from client programs (as demonstrated in the AddMessage()
0
1420
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS Remoting and possible others. Keywords: VSS Remote Access, VSS Web Access, VSS Internet Access,
0
2462
by: Martijn Damen | last post by:
Hi, At the moment I am trying to develop an application that uses another app over .net remoting and having some problems with it (ok, that is ofcourse why I am here), hope somebody can shine a light on the following: I have been given a sample winforms app, which works without problem, I can connect, send queries and become response from the other application. When I try to implement this in webforms, this unfortunately does not...
8
1754
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged package) to .NET. Our clients have been asking for lot of new stuff namely being able to send patient information to devices, being able to fix appointments online, etc.
2
3058
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton / Server activated mode on startup. The Remoting Client accesses the Remoting Class through the interface of the Class and subscribes to an event of the Remoting Class that will be fired upon the private member value change.
0
3403
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false); I get the following error - doesn't matter if I try it local from my machine or from a remote machine. (After the Errormessage is more text ;))
0
10208
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10038
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7404
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3558
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.