473,320 Members | 2,180 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,320 software developers and data experts.

server keeps rejecting tcp connections!

59
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 5581
Banfa
9,065 Expert Mod 8TB
What sort of server? Is it expecting some sort of authentication?
Jan 6 '09 #2
raids51
59
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
Banfa
9,065 Expert Mod 8TB
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
raids51
59
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
Banfa
9,065 Expert Mod 8TB
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
raids51
59
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
DonRayner
489 Expert 256MB
@raids51
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 192.168.0.1 into your web browser.
Jan 9 '09 #8
raids51
59
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
raids51
59
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
DonRayner
489 Expert 256MB
That means that you are not using the Window Firewall. Most likely you have RRAS enabled on the server which is using ipnat.sys. If that's the case you will have to look into the configuration of your RRAS to enable access
Jan 13 '09 #11
raids51
59
yea i do have it enabled, but im not very good with servers, could you tell me how to enable access?
Jan 13 '09 #12
DonRayner
489 Expert 256MB
I'm affraid I don't have any experiance using RRAS myself except in turning the service off to use firewall. Maybe someone else could help you there.
Jan 14 '09 #13
raids51
59
so if RRAS is on does that mean that i cant have firewall running?
Jan 14 '09 #14
DonRayner
489 Expert 256MB
Correct. Your windows firewall would need to have use of ipnat.sys but if RRAS is using it, it won't be able to start. Now RRAS will act as sort of a basic firewall if you want to setup exceptions on it to block ports, but it should be by no means your only means of protection. The Firewall on your router should be eanbled and then you use port forwarding to direct your required incomming ports to the server. If the application that you are using requires an ICMP responce from your server you may also have to enable it on your router.
Jan 15 '09 #15
raids51
59
hmm... well i cant see why it keeps rejecting connections...
Jan 16 '09 #16
DonRayner
489 Expert 256MB
You could try to do an online port scan from your server to see if that port is actually open. Just type something like "Firewall Test" into google and you can find some sites that will do a port scan to see what is open.

If the port shows as open then it's probally a problem with your program, if not then you are going to have to dig more into why the port is still blocked.
Jan 16 '09 #17

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

Similar topics

2
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...
5
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...
2
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...
6
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...
12
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...
1
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...
4
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...
0
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,...
1
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
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: 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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.