Welcome to Dream.In.Code
Become an Expert!

Join 149,515 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,363 people online right now. Registration is fast and FREE... Join Now!




how can i find out users ip ,...

 
Reply to this topicStart new topic

how can i find out users ip ,...

rash
19 May, 2007 - 07:00 AM
Post #1

New D.I.C Head
*

Joined: 19 May, 2007
Posts: 3


My Contributions
hi everyone
i was just wondering how can what ip the user have or what os is the user running , stuff like that
can anyone help ?
thanks in advance.
User is offlineProfile CardPM
+Quote Post

Israel
RE: How Can I Find Out Users Ip ,...
19 May, 2007 - 08:52 AM
Post #2

D.I.C Addict
Group Icon

Joined: 21 Nov, 2004
Posts: 626


Dream Kudos: 175
My Contributions
QUOTE
i was just wondering how can what ip the user have or what os is the user running , stuff like that


I am not very clear on what you are asking. Do you mean the users that visit a web page you have? There is a php script for that. If you mean some random person (meaning you have posted this in the wrong thread) use nmap.
User is offlineProfile CardPM
+Quote Post

rash
RE: How Can I Find Out Users Ip ,...
19 May, 2007 - 11:16 AM
Post #3

New D.I.C Head
*

Joined: 19 May, 2007
Posts: 3


My Contributions
yes i meant someone who is visiting my webpage
and thanks for reply
and sorry for mistakes

This post has been edited by rash: 19 May, 2007 - 11:19 AM
User is offlineProfile CardPM
+Quote Post

Israel
RE: How Can I Find Out Users Ip ,...
19 May, 2007 - 08:01 PM
Post #4

D.I.C Addict
Group Icon

Joined: 21 Nov, 2004
Posts: 626


Dream Kudos: 175
My Contributions
I've never used it but this script is on the <dic> code snippets page under php. It only gathers the ip addresses but if you have that you could do a port scan and get the rest of the information you requested.
User is offlineProfile CardPM
+Quote Post

rash
RE: How Can I Find Out Users Ip ,...
20 May, 2007 - 06:01 AM
Post #5

New D.I.C Head
*

Joined: 19 May, 2007
Posts: 3


My Contributions
thanks,
I'm sorry but can you explain how exactly you do a port scan ?
User is offlineProfile CardPM
+Quote Post

lenny
RE: How Can I Find Out Users Ip ,...
20 May, 2007 - 10:00 AM
Post #6

D.I.C Head
**

Joined: 4 May, 2004
Posts: 55


My Contributions
in PHP, you can get the visitor's IP address with

CODE
echo $_SERVER['REMOTE_ADDR'];


and you can get their OS/Browser data from this:

CODE
echo $_SERVER['HTTP_USER_AGENT'];


this site: http://en.wikipedia.org/wiki/User_agent

will help you decide what browser/os they have.
User is offlineProfile CardPM
+Quote Post

quim
RE: How Can I Find Out Users Ip ,...
20 May, 2007 - 08:33 PM
Post #7

D.I.C Head
Group Icon

Joined: 11 Dec, 2005
Posts: 145



Thanked: 2 times
Dream Kudos: 350
My Contributions
why would you want to know the IP, then the OS, and then your asking for a port scanner script.
huh suspicious.....

This post has been edited by quim: 20 May, 2007 - 08:35 PM
User is offlineProfile CardPM
+Quote Post

Israel
RE: How Can I Find Out Users Ip ,...
20 May, 2007 - 09:03 PM
Post #8

D.I.C Addict
Group Icon

Joined: 21 Nov, 2004
Posts: 626


Dream Kudos: 175
My Contributions
QUOTE
I'm sorry but can you explain how exactly you do a port scan ?


It sounds to me like someone's trying to run before they've learned to walk. No offense, but I believe if you don't know how to even to a port scan, whatever it is you are trying is probably way out of your league. None the less, if you have an interest you can learn but you should be starting a lot smaller. If you want to do port scans download nmap and install it. You will have to install it via command line. (Something else you should be learning) If you have some kind of ambition of becoming a 1337 h4xor then you need to learn how to be a programmer first and a hacker second. Learn html and php, then C/C++ or Java, Then move onto the real meat like Assembly. Then you might actually understand more about what it's about.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 08:03PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month