473,836 Members | 1,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

server keeps rejecting tcp connections!

59 New Member
i created a program in VB.NET that connects with tcp to a server... the problem i have is my server keeps rejecting the connections... i have no skill in networkin and i need some help, its probably something very basic but i still cant figure it out... im pretty sure its not my code although it is possible that i overlooked something else simple in my code. Any help would be greatly appreciated! thanks in advance
Jan 6 '09 #1
16 5639
9,065 Recognized Expert Moderator Expert
What sort of server? Is it expecting some sort of authentication?
Jan 6 '09 #2
59 New Member
i have server 2003 on it. my router port fowards everything from port 5136, the port i use, to the server.
Jan 7 '09 #3
9,065 Recognized Expert Moderator Expert
Yes that is the OS you are using but what server software are you running that is going to respond to the incoming connection request?
Jan 7 '09 #4
59 New Member
some software i made myself it just listens to a tcp port for any incoming connections on port 5136, but the server keeps rejecting the connections, i cant even connect to it from inside my network. sorry im not very good at networking.
Jan 8 '09 #5
9,065 Recognized Expert Moderator Expert
OK, does you server software output and status messages or is it supposed to if you get any connections?

Do you have a firewall running on the server? If so have you opened port 5136 to allow incoming connections in the servers firewall? Actually the simplest way to tell if the firewall is a problem is to (very) temporarily disable it. Then if you connection works you know it is the firewall and you can set about finding out how to configure it.

Can you ping the server? Making sure you use the same address your .NET program uses.
Jan 8 '09 #6
59 New Member
thanks for the suggestion i really appreciate it... i was able to ping it and it worked. i dont know if i have any firewall software set up on it, i didnt actually setup the server. is there any way i could detect if i have a firewall setup?
thanks for helping me so far, i really do appreciate it
Jan 9 '09 #7
489 Recognized Expert Contributor
In the control panel on your server, click on the windows firewall icon. If the firewall is on then click on the exceptions tab, then select add port. Add a name for your exception and your port number and apply your changes.

If you are connecting to your network throuh a router you will most likly have to open a port in it's nat firewall. With most routers you can administer them via http by typing into your web browser.
Jan 9 '09 #8
59 New Member
i already have my router setup to portfoward 5136, so i am guessing its my servers firewall, ill check it later tonight when i have time
Jan 9 '09 #9
59 New Member
alright so i finally got some time to check up on my server, when i try to open windows firewall i get an error... something about it not being able to use ipnat.sys... also if it helps the error i get from my application says that the server kept on refusing the connection. any ideas?
Jan 13 '09 #10

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

Similar topics

by: Mark | last post by:
Hi - I have a rather unreliable host just now - but they offer .net, sql server and SSL for a reasonable price. Problem is, the domain is hosted on a shared server - and it keeps going down apparantly because of code which is less than clean, on some peoples sites. (ie. not closing connections etc). I am considering moving to a decicated server - but at this point in time, cannot afford a full SQL Server licence for it - however, the...
by: Jason | last post by:
After a server accepts a client connection on a certain port, a new socket is created on the server on a system managed dynamic port to handle the connection. Please confirm this. If so, how can I get the number of the dynamic port in the server (in server code)? Using LocalEndPoint.Port just returns the original listener port number. Thanks,
by: Chris | last post by:
I need to know exactly what VBA lines Create and Destroy SQL Server Processes - i.e. those visible in Enterprise Manager under Management > Current Activity > Process Info. Why? I am experiencing strange behaviour with Processes that are created when I create a DAO Database Object with the following line: Set m_ResDatabase = DBEngine.Workspaces(0).OpenDatabase(strDSN, False,
by: Emily Jones | last post by:
Dear All I've got a MS Access application. Split FE/BE. 9 user LAN. I'm considering moving to a server backend. Probably SQL Server, with an Access FE still. Because: 1. We've been getting many 'disk or network error' messages. Emphasising what people have said - that Access is sensitive to network instability. The BE hasn't corrupted yet, but I'd rather not wait for that to happen.
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed both the iis and sql server in a single machine. Not too long ago, the machine had some hardware problems, and management has decided to purchase new servers, for both asp.net and sql server.
by: Ron Davis | last post by:
I have recently discovered Python and like it quite a bit. I would like to use it on a new project I am starting. The project will gather data from several web services and present the collected data to browser users through a web server. So basically I need a full-time web server and a separate way to poll web services for their data. There is no database involved. The problem is that I have tried several Python web servers...
by: Jim Devenish | last post by:
I have converted an Access back-end to SQL Server back-end but am having some problems. The Access to Access application has been running well for some years. I have successfully copied all the data to SQL Server and linked the tables to the front end .mdb (I am not using .adp). Some queries were performing poorly so I have converted these to Views and linked to them. Everything works well with good response but when about 8-10...
by: jimladd | last post by:
Hi, I have a ASP.Net v 1.1 with a SQL Server 2000 database site on a server with 1/2 GB of memory. The memory allocated to SQL Server continues to grow irrespective to what I set on the memory tab, of the properties pane in enterprise manager. In my code I have a single class that handles all database connections, in this all connections are closed.. All my sql is held in stored procedures. I have noticed that if the site pulls back a some...
by: Steve | last post by:
Hi All I have a windows application (written in VB.net 2005) which I update via web downloads to my clients computers The downloaded file is saved in a subfolder until the next time the clients computer is started An entry in the registry HKCU\Software\Microsoft\Windows\CurrentVersion\Run launches my Update program on the next windows XP start
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...
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,...
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...
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...
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,...
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();...
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...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.