473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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:

<DnsPermissionAttribute(SecurityAction.Demand,
Unrestricted:=True)> Public Class clTOAServer
Inherits MarshalByRefObject
Private thServer As Thread

Public Sub Main()
thServer = New Thread(AddressOf 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(clientIP, toaPortNum)
toaListener.Start()
Try
Dim tcpClient As TcpClient = toaListener.AcceptTcpClient()
Catch
......
End Sub
The following is how I set up my client class to connect
to the server class:

Public Shared Property GetServerObjects()
Get
Dim aryReturnData As Array

Dim tcpClient As New System.Net.Sockets.TcpClient

Dim serverIP As IPAddress = IPAddress.Parse
("171.172.55.154")
tcpClient.Connect("171.172.55.154", 8080)
End Get

End Property
Nov 20 '05 #1
4 8656
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.com> 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:

<DnsPermissionAttribute(SecurityAction.Demand,
Unrestricted:=True)> Public Class clTOAServer
Inherits MarshalByRefObject
Private thServer As Thread

Public Sub Main()
thServer = New Thread(AddressOf 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(clientIP, toaPortNum)
toaListener.Start()
Try
Dim tcpClient As TcpClient = toaListener.AcceptTcpClient()
Catch
.....
End Sub
The following is how I set up my client class to connect
to the server class:

Public Shared Property GetServerObjects()
Get
Dim aryReturnData As Array

Dim tcpClient As New System.Net.Sockets.TcpClient

Dim serverIP As IPAddress = IPAddress.Parse
("171.172.55.154")
tcpClient.Connect("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.com> 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:

<DnsPermissionAttribute(SecurityAction.Demand,
Unrestricted:=True)> Public Class clTOAServer
Inherits MarshalByRefObject
Private thServer As Thread

Public Sub Main()
thServer = New Thread(AddressOf 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(clientIP, toaPortNum)
toaListener.Start()
Try
Dim tcpClient As TcpClient = toaListener.AcceptTcpClient () Catch
.....
End Sub
The following is how I set up my client class to connect
to the server class:

Public Shared Property GetServerObjects()
Get
Dim aryReturnData As Array

Dim tcpClient As New System.Net.Sockets.TcpClient

Dim serverIP As IPAddress = IPAddress.Parse
("171.172.55.154")
tcpClient.Connect("171.172.55.154", 8080)
End Get

End Property

.

Nov 20 '05 #3
Hello,

"M.Perry" <mp******@aol.com> 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.com> 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.com> 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:

<DnsPermissionAttribute(SecurityAction.Demand,
Unrestricted:=True)> Public Class clTOAServer
Inherits MarshalByRefObject
Private thServer As Thread

Public Sub Main()
thServer = New Thread(AddressOf 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(clientIP, toaPortNum)
toaListener.Start()
Try
Dim tcpClient As TcpClient = toaListener.AcceptTcpClient () Catch
.....
End Sub
The following is how I set up my client class to connect
to the server class:

Public Shared Property GetServerObjects()
Get
Dim aryReturnData As Array

Dim tcpClient As New System.Net.Sockets.TcpClient

Dim serverIP As IPAddress = IPAddress.Parse
("171.172.55.154")
tcpClient.Connect("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
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...
0
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...
5
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...
0
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...
4
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...
0
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...
0
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...
8
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...
2
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 /...
0
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);...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.