473,385 Members | 1,400 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,385 software developers and data experts.

problem with connection

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(windows,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 2239
sicarie
4,677 Expert Mod 4TB
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,556 Expert Mod 16PB
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
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,556 Expert Mod 16PB
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 Expert 256MB
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,556 Expert Mod 16PB
@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
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...
1
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...
4
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...
8
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...
0
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...
5
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...
22
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...
5
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...
1
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...
1
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...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.