Sihanoukville is a beach resort in Cambodia.
North/East towards Phnom Penh, Kampot
The CamBrew factory is located at the end of the city at the National Road to Phnom Penh. You can hitch right in front of it. It's only about 4 km walking, but the road leads over a steep hill and on a sunny day, this can be extremely exhausting, so you might want to take a tuk-tuk or motorbike.
There are many trucks coming from the port and going straight to Phnom Penh, so if that's your destination, you have a good chance to get a direct lift. The trip takes 4-5 hours, depending on the vehicle.
Accommodation and Sleep
It's possible to sleep on the rocks, south of Serendipity beach. Only do that, if you are sure it won't rain that night though.
For wild camping, you can go to Hun Sen beach. It's about 6 km from the center, but most of the day and all night, you will have the beach for you alone.