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
16 5581 Banfa 9,065
Expert Mod 8TB
What sort of server? Is it expecting some sort of authentication?
i have server 2003 on it. my router port fowards everything from port 5136, the port i use, to the server.
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?
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.
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.
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
@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.
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
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?
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
yea i do have it enabled, but im not very good with servers, could you tell me how to enable access?
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.
so if RRAS is on does that mean that i cant have firewall running?
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.
hmm... well i cant see why it keeps rejecting connections...
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.
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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
| |