Jump to content
Xtreme .Net Talk

Recommended Posts

  • 4 weeks later...
Posted

I had this problem, and someone mentioned this solution...

 

Have you tried to ping it with a TTL = 1?

 

TraceRoute does this. Then it will die at the first router hop, and the packet will be returned to you.

Posted

Thanks everyone for all the replies. Unfortunately I had to cheat a bit. I made a page in PHP that only has the function of outputting the IP addy of the visitor... I then had my program surf to that page and parse out the IP addy.

 

dynamic_sysop: I gave your solution a try but unfortunately all it did for me was return my local IPs.

 

MicroMan: I may fool around with this a bit but part of the problem is that you need to know the external IP of the local network router and it seems that this would just make the packet die when it hits the router and return the packet with the local addy. Could be wrong though... we shall see.

"Programmers are tools for converting caffeine into code."

 

Madcow Inventions -- Software for the Sanity Challenged.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...