A Hofstra University student was robbed at gunpoint inside his off-campus Uniondale home Wednesday by three masked men in an apparent targeted attack, authorities said.

The robbers had knocked on the door of a Lawrence Street home about 12:25 p.m., and after a woman answered, they asked for the 21-year-old victim by name, Nassau police said.

Once inside, the men headed toward a basement apartment where the student was, put on masks and confronted him, said Det. Lt. Richard LeBrun, a department spokesman. One suspect told the victim, “give me the stuff,” LeBrun said.

The victim handed over a small box, then was “immediately” struck in the back of the head and under his right eye with a gun, LeBrun said.

The attack left the student with lacerations, police said, and he was taken to a hospital in stable condition.

The suspects left in an unknown direction, according to a police news release. No arrests have been made.

advertisement | advertise on newsday

Police said the contents of the box were still under investigation, but LeBrun said police believe the robbery was of “some type of drug paraphernalia.”

“We don’t believe that this is a random incident,” LeBrun said. “I believe there was some type of association” between the suspects and victim, who goes to Hofstra, the spokesman said.

Karla Schuster, a university spokeswoman, said in a statement: “The investigation of this incident, which happened off-campus, is being handled by Nassau County Police, and we are cooperating with that investigation.”

At the same house in June 2008, nine people, most of them Hofstra students, were duct-taped during a home invasion by three intruders. After pistol-whipping one student for calling 911, the robbers escaped with cash, cellphones and a 46-inch flat-screen TV, Nassau police said at the time.

Marie Smith, who lives across the street, on Wednesday said raucous parties have been held frequently at the house in the last decade, prompting neighbors to complain to police and university officials.

“Now, it’s getting dangerous,” Smith lamented.

Schuster declined to comment beyond her statement, and the owner of the home could not immediately be reached Wednesday night. Police on Wednesday did not immediately have any information on any complaints about the home.

Investigators ask anyone with information about this case to contact Nassau County Crime Stoppers at 800-244-TIPS. Callers will be kept anonymous.