473,320 Members | 1,987 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.

Limiting connections from localhost only?

Hi, I'm using Sockets classes from this web site:
http://www.adp-gmbh.ch/win/misc/sockets.html

to create a very simple server

Is it possible to limit connections to my server to localhost only? (so not
accept any remote connections)

What would I have to do?
Jan 11 '08 #1
2 1175
"MrNobody" <Mr******@discussions.microsoft.comwrote in message
news:0D**********************************@microsof t.com...
Hi, I'm using Sockets classes from this web site:
http://www.adp-gmbh.ch/win/misc/sockets.html

to create a very simple server

Is it possible to limit connections to my server to localhost only? (so
not
accept any remote connections)

What would I have to do?
Find the code that handles incoming connections and make sure the IP address
is 127.0.0.1. If it is, refuse the connection. You may possibly need to
also check the A name in some cases which would be anything other than
localhost.

--
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
Jan 12 '08 #2
MrNobody wrote:
Hi, I'm using Sockets classes from this web site:
http://www.adp-gmbh.ch/win/misc/sockets.html

to create a very simple server

Is it possible to limit connections to my server to localhost only? (so not
accept any remote connections)

What would I have to do?
alternatively, when you create the server socket, bind it to 127.0.0.1 rather
than INADDR_ANY. That way, it isn't even seen by the outside!

/steveA
Jan 12 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew | last post by:
Hi.. I am writing a .NET server program that will run on Windows 2000 (and maybe some day on Windows 2003). It must allow thousands of people to be connected at one time. I would like to...
6
by: Gerry Abbott | last post by:
Hi all, Have written some code to limit the concurrent users of a database. Use the Autoexec macro to open a form. When the form opens it increments a value in a table. When the form closes...
4
by: N J | last post by:
Hi, I ahve developed a program using access and am distributing it using MDE's, I ahve had many requests for a demo. I was thinking of limiting the number of records to say 100? If anyone has...
3
by: Peter Silva | last post by:
Hi folks, I have a need in a network data distribution application to send out data to folks who want it using the protocol of their choice. I´d like it to support a variety of protocols and I...
1
by: marcfischman | last post by:
Please help. I have a website running on a linux/apache/mysql/php server. I receive about 8,000-10,000 visitors a day with about 200,000 to 300,000 page views. The server is a RedHat Linux...
1
by: SammyBar | last post by:
Hi all, I have tested my first asp.net web app inside VisualStudio 2005. Now I need to do some testing from another PC calling to my development PC, but I can not connect to the port that uses...
0
by: shamirza | last post by:
ADO.Net Making the Connection: Accessing Your Database using ADO.NET Data Access Namespaces Within the .NET framework class library (FCL) version 1.1, there are five third-level namespaces that...
8
by: Pedrissimo | last post by:
Does anyone know how to change the connections.py file in /usr/lib/python2.4/site-packages/MySQLdb/connections.py" to a specific user? The error I get is: _mysql_exceptions.OperationalError:...
2
by: Markus Strobl | last post by:
Hi! I'm developing a self-hosted WCF service running on client machines for interprocess-data exchange using netTcpBinding. For security reasons i'd like to configure the service in a way it...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
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)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.