473,668 Members | 2,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with connection

3 New Member
I'm testing a simple c# application with server and client both working on the same machine ,client try to connect to server using external ip but i keep getting this message "No connection could be made because the target machine actively refused it".
I port forwarded my server manually and using UPNP and checked the port and it's open ,all firewalls(windo ws,software and router) are disabled, utorrent is working already on my machine using UPNP.
so i don know the possible reasons of failing to connect .any suggestions?
Apr 5 '09 #1
6 2255
sicarie
4,677 Recognized Expert Moderator Specialist
I'd get on the device that's doing the forwarding and actively telnet to the port

telnet <ip> <port>

If that connects, then you know the port is open, and there may be an issue with credentials or something in the app.

Otherwise, you know the issue is somewhere between your forwarding device and the firewall.
Apr 10 '09 #2
NeoPa
32,568 Recognized Expert Moderator MVP
In my experience, that error message indicates that a router/firewall device has stepped in and refused the connection. Not Windows Firewall on a PC, but a specific device. I hope that helps.
Apr 25 '09 #3
madGirl
3 New Member
thanks for replying but i made sure all kinds of firewalls turned off and telnet is working fine.
but maybe it's something else u know i was trying to access my ftp site from my machine using my external IP and it didn't work and someone told me the router doesn't forward connection from the machine itself and i tested it using net2ftp and it works.may be it's the same because the application is working fine with local ip.
Apr 25 '09 #4
NeoPa
32,568 Recognized Expert Moderator MVP
I'm not sure I follow you, but let's be clear.

The router / firewall needs to be running. The firewall needs to be on to reroute the traffic that it gets on the external IP address and port, through to port 25 on your internal PC. This is NAT (or Network Address Translation) and needs to be configured correctly on the firewall / router. Does that make sense?
Apr 25 '09 #5
DonRayner
489 Recognized Expert Contributor
Someone correct me if I'm wrong on this but.... I'm pretty sure that a router won't connect two internal IP's together on an external IP, As far as the router is concerned, even if you are using different ports it's still the same address and so you are asking it to connect to itself and that just won't happen.

You may be able to get away with it if your ISP has supplied you with more than one IP address and your router is setup to use one for outgoing and another for incoming.
Apr 25 '09 #6
NeoPa
32,568 Recognized Expert Moderator MVP
@DonRayner
That all depends on how the device is configured. It's certainly possible to telnet to a router's external IP address, even from the internal network.

Consider also, that there can be more than one routing device in more complicated networks sometimes. More often found in commercial environments than in homes to be sure, but the scenarios do exist.

These situations can get quite complicated, but the configuration of the rules etc which convert external to internal seem to be the important stuff. That does depend heavily on the specific device though, so general advice is always complicated.
Apr 25 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2016
by: Refky Wahib | last post by:
Hi I need Technical Support I finished a Great project using .Net and SQL Server and .Net Mobile Control My Business case is to implement this Program to accept about 1 Million concurrent users So I designed the project as master Node that has all administration
1
1835
by: Refky Wahib | last post by:
Hi Actually I need Technical Support I finished a Great project using .Net and SQL Server and .Net Mobile Control My Business case is to implement this Program to accept about 1 Million concurrent users So I designed the project as master Node that has all administration project and about 10 client Nodes Those subscribers will login and I configured the replication at Server that can publish any change to the Nodes
4
4142
by: Rahul Anand | last post by:
Getting SQL Exception when trying to implement Connection based Trasaction using SQL Helper class. I am using the follwing function to execute my stored procs: -=-=-=- ExecuteScalar(ByVal transaction As SqlTransaction, _ ByVal spName As String, _ ByVal ParamArray parameterValues() As Object)
8
5764
by: BBC1009 | last post by:
I have an application connected to an overseas sql-server using port 1433. But recently it always timeout the connection. Any solution to avoid this??? I am using the VB.net Windowed Form with .net 2002, SQL-Sever 2000 Enterprise Thanks!
0
5385
by: mortenol | last post by:
Hi, I am trying to connect a MS SSIS package to an AS400/DB2 database, and I experience problem when I hit the "Create Package" button in the "Data Link properties window". I have understood that the packages need to be created, before I can run any SQL on the DB2 base via SSIS(?). Here are the steps that I have done before the problem arise: 1. In MS Visual Studios, I created a new project of type "Integration Services". 2. On the...
5
23999
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2 development client. Bur Its gives me following error message. I searched lots of things on net and tried on remote server but i didnt got suceess. Can any one tell me how to set TCP\IP
22
4313
by: b_r | last post by:
Hi, I'm trying to make a simple operation (insert into DB) in VB 2005 and SQL Server. The code is as follows: Dim sConnectionString As String = _ "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DB.mdf....
5
3385
by: Usman Jamil | last post by:
Hi I've a class that creates a connection to a database, gets and loop on a dataset given a query and then close the connection. When I use netstat viewer to see if there is any connection open left, I always see that there are 2 connections open and in "ESTABLISHED" state. Here is the piece of code that I'm using, please tell where I'm doing it wrong. Since this class is being used at many placed in my actual web based application that...
1
5116
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from the control unit and store them into the Sql server - The operation console then retrieve this data from the sql for reporting and statistics purposes - I am using ODBC connection - The problem is that the operation console is not able to...
1
20609
by: Ryan Liu | last post by:
Hi, I have a 100 clients/ one server application, use ugly one thread pre client approach. And both side user sync I/O. I frequently see the error on server side(client side code is same, but I don't see the error): "System.IO.IOException: Unable to read data from the transport connection:A blocking operation was interrupted by a call to WSACancelBlockingCall"
0
8459
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8371
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8889
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
8790
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
8572
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
8652
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5677
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
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2782
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.