C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 24th, 2006, 10:18 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
Port sniffer for my own machine:

Can someone please help me with this problem. I want to write a program that will detect an open port on my own machine. This is not malicious in any way. The reason why I need to write this is because I have manually opened multiple ports for multiple games on my machine now for some reason I can telnet to some of them leading me to believe that they are still open. I would like to write a program that will send data to those files to see if they are accepted or basically test to see if they are actually opened. I know this is pretty advanced and might be out of my scope for those of you who know me, but some tips or even links would be a help. I have already googled this issue but all that comes up is programs people have written and are charging outlandish prices for. I have basic knowledge of programing with sockets and average knowledge with networking but beginner when it comes to putting it all together. Any help will do.

Oh ya, I have already tryed to close them manually by deleting the program from the active directory in the firewall settings but some I still use, and when i bring up properties it only gives me the location of the program and the option to open more.
Comments on this post
Itsacon agrees: Love the quote in your sig. Respect (and REP!)
__________________
---Official Member Of The Itsacon Fan Club---
Give a man a fish and he will eat for a day. Teach a man to fish and he will sit in a boat all day drinking beer.

Reply With Quote
  #2  
Old January 25th, 2006, 01:18 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 997 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 26 m 27 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
Windows? Try typing 'NETSTAT' in the console.

netstat /? for instructions.
__________________
This is my code. Is it not nifty?

"The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools."
---Douglas Adams


Join the Itsacon fanclub!    
Zero Tolerance: Spammers banned so far: 280

Reply With Quote
  #3  
Old January 25th, 2006, 09:29 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
You've posted this under C/C++... so not sure if you're looking to create your own.

A good industry tool would be nmap, it's free!.
It'll scan your own computer, or computers on your home network.
nmap is operating system agnostic... =)
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter!
DevArticles Forum Moderator

"The net is a waste of time, and that's exactly what's right about it." -- William Gibson

Reply With Quote
  #4  
Old January 25th, 2006, 06:29 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
Thanks Guys As Always. I've have been busy with a new job, but I will soon have my own computer to check the forums. Well actually three but the other two are IBM's and the internet is locked. =(
Itsacon,
But anyways, The netstat worked fine and I remember that one but forgot what it did, I guess what I really needed is to find out what programs are using what ports and with xp it doesn't realy have those type of options.
Madcowdzz,
Thanks for the tool man.
Expansion, =)
But let me expand on the question a little. If I am on an internal IP, being that I am behind a router will I have to forward all the ports for my games and stuff to the routed machine? Or is that even necessary. or can you just manually open a port and get the same effect, I know this is a programming page but I am still interested in this stuff because knowing about how this stuff works will better help me when its time to program something of this nature Im sure.

Last edited by Geo.Garnett : January 25th, 2006 at 06:48 PM.

Reply With Quote
  #5  
Old January 25th, 2006, 06:57 PM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 997 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 26 m 27 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
I have Kerio running on my own machine, which can give me a very comprehensive list of every program listening to, or sending on a port.

Also IMHO one of the best free firewalls around.

If you're behind a router, you'll need a port-forward to play most games, that's right.

Reply With Quote
  #6  
Old January 25th, 2006, 09:25 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
Yes I have heard that about Kerio too, matter affact me and one of my bosses the other day were discussing this same subject and he said almost the same thing. But, when you say "you'll need a port-forward to play most games, that's right." is there another way then actually setting it up in your settings of linksys or whichever router you are using. If there is an easier way that would be kool, because I dont have admin rights to the router at the moment, my room mate does and he doesn't even know what a router is let alone what port forwarding is. So, its difficult to switch stuff, but if there is a program that I can use that does this for me and can keep a list of them that would be sweet. Thanks for all ya'lls help again.

Reply With Quote
  #7  
Old January 26th, 2006, 01:28 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 997 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 26 m 27 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
Nope, most routers don't allow it without the root password.
There are different ways to do it. My old modem/router (before I moved here and got university broadband) was configured over telnet, and could be set by programs that handled the telnet connection themselves.
Those programs were simple command line tools, that could take config files, so you could set up configs for all your games.

But I don't think Linksys supports that.
I'd try gettting the password of your roommate. I believe the default setting for LS routers is username: <blank>, password: 'admin'. If he doesn't have a clue, it might still be on that.

Reply With Quote
  #8  
Old January 26th, 2006, 08:40 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Quote:
Originally Posted by Itsacon
But I don't think Linksys supports that.
I'd try gettting the password of your roommate. I believe the default setting for LS routers is username: <blank>, password: 'admin'. If he doesn't have a clue, it might still be on that.

I was going to state exactly that... additionally, if the password is still the default, CHANGE IT!
Or advise your flatmate to.

Reply With Quote
  #9  
Old January 26th, 2006, 06:45 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
Ya, I got it all together now, I just put my router back on without him even knowing it, and being that the routers passwords are router specific and not service provider specific it all works out for every one. NOW the person that has a better change of messing things up has the admin rights, LOL dont laugh, hehehe. But Ill geterdid now. Ty fellas.

Last edited by Geo.Garnett : January 26th, 2006 at 10:10 PM.

Reply With Quote
  #10  
Old January 27th, 2006, 02:34 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 997 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2Folding Points: 906075 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 14 h 26 m 27 sec
Reputation Power: 5
Send a message via ICQ to Itsacon
No prob, as usual :-)

Reply With Quote
  #11  
Old January 27th, 2006, 11:10 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
I trust you've changed your password from the default anyhow? =)

Reply With Quote
  #12  
Old January 27th, 2006, 06:36 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
I sure have

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Port sniffer for my own machine:


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |