Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: why i don't receive DHCPDiscover message from server using dongle and why same code give DHCPNac on wifi

by Perlbotics (Archbishop)
on Jan 11, 2015 at 18:16 UTC ( [id://1112900]=note: print w/replies, xml ) Need Help??


in reply to why i don't receive DHCPDiscover message from server using dongle and why same code give DHCPNac on wifi

Things, I would try first:

  • example.com? - is the returned IP the correct one? Set manually to see if that helps?
  • Check if router filters on MAC... (update:) If the router does not forward IP packets from an unregistered source (the MAC of your PCs card/dongle), the request will not reach the server - this is a simple (but not very effective) security measure.
  • Check if local hosts interface(s) is reachable from server (routing). (update:) If the server is multi-homed and the routing is not configured right, the response might travel through the wrong (default-)network.
  • Snoop at server side, analyse traffic with wireshark. (updated)
  • Use i.e. perltidy to make code easier to parse for humans ;-)
      • Comment on Re: why i don't receive DHCPDiscover message from server using dongle and why same code give DHCPNac on wifi
      • Download Code

Replies are listed 'Best First'.
Re^2: why i don't receive DHCPDiscover message from server using dongle and why same code give DHCPNac on wifi
by ppp (Acolyte) on Jan 11, 2015 at 18:35 UTC
    Example.com is extra part (just to print current IP at terminal , I removed it now). The real part of socket creation is done in SocketCreation() function. Please explain points 2 , 3 and 4 (specially 2, 3) in bit more details. Also please note that i am using windows (not linux) Thanks a lot.
      Please note that this is a Perl board, not a sys admin help desk.

      Cheers Rolf

      PS: Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1112900]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-25 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found