As far as I know, there are two reasons why you will feel your eye socket hurt. On one hand, the hurt of the eye socket is from that your muscle around your eyes is stretched because you are trying to make your eyes limit. If so, you need not see any doctor, what you should do is just relax you and your eyes. Meanwhile, you can also do some eye exercise. On the other hand, if your eyes are irritated, there is much possibility that you will experience the pain for the eye socket. On this condition, if the irritated eyes are not so serious, then you can handle with it by yourself. For example, you can have a try with the warm compresses, which will help you reduce the pain. Besides, the pain can be released by the frequent artificial tears during the day. Of course, if there is no improvement, you had better see your eye doctor.