Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / January 2008

Tip: Looking for answers? Try searching our database.

Limiting connections from localhost only?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MrNobody - 11 Jan 2008 16:45 GMT
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?
Frank Hickman - 12 Jan 2008 14:18 GMT
> Hi, I'm using Sockets classes from this web site:
> http://www.adp-gmbh.ch/win/misc/sockets.html
[quoted text clipped - 6 lines]
>
> 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.

Signature

============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.

Steve Alpert - 12 Jan 2008 21:41 GMT
> Hi, I'm using Sockets classes from this web site:
> http://www.adp-gmbh.ch/win/misc/sockets.html
[quoted text clipped - 5 lines]
>
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.