Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When connecting two devices with Wifi in ad-hoc mode is there a standard way of assigning IP addresses? E.g. is DHCP used, static addresses, or link local addresses? How would one device know the IP of the other?

share|improve this question

closed as not a real question by Nifle, Aaron Miller, Breakthrough, Canadian Luke, Ƭᴇcʜιᴇ007 May 18 '13 at 0:36

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
This has nothing to do with the actual connection method itself, it has to do with the router/gateway settings. Think of running a CAT-5 cable to a router as the same thing as connecting via Wi-Fi with respect to the overall communication scheme. All you do is send/receive packets from a router, and the router handles the routing (thus explaining the name...). –  Breakthrough May 17 '13 at 18:43

1 Answer 1

up vote 4 down vote accepted

You can do it however you want. If you want to make one node a DHCP server, you can do that. If you want to assign each node an IP address manually, you can do that.

As for how one device would know the IP address of the other, it depends on why that node would need to know. How do you know someone's phone number? Well, if they're someone you know personally, you ask them. If they're a business, you look it up by their business name. And so on. Similarly, for every reason you might want to know an IP address, there should be a corresponding way you find it out.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.