How to create an infrastructure Wi-Fi network from Yosemite with no Internet connection? [duplicate]
In System Preferences, go to networking and connect your Mac to a wired network. Firewire or thunderbolt or ethernet (with or without an adapter) is needed to have a physical connection in the green or orange state. You need a link up and not necessarily a viable connection to any network.
Then go into Sharing and enable Internet Sharing, there, share the connection of something you aren't using (say, for example, thunderbolt ethernet) then other computers can connect to it as if it was a WiFi hotspot and features that use LAN will work perfectly fine. If that LAN has a route to the internet it will work
This method allows OS X to act as a software router and avoids the wireless network being created in an ad-hoc mode with it's limitations.